diff --git a/program2.cpp b/program2.cpp index 206d622..933c528 100644 --- a/program2.cpp +++ b/program2.cpp @@ -2,6 +2,7 @@ #include #include using namespace std; + void check(stack s) { /* @@ -10,14 +11,14 @@ void check(stack s) s-integer object of stack return value:none approach:-if size of stack is odd - pop an element from stack - while stack is not empty - pop two elements from stach - check whether they are consecutive or not - if elements of atleast one pair is not consecutive - print FALSE - otherwise - print TRUE + pop an element from stack + while stack is not empty + pop two elements from stach + check whether they are consecutive or not + if elements of atleast one pair is not consecutive + print FALSE + otherwise + print TRUE */ int a,b,temp=1; @@ -50,6 +51,7 @@ void check(stack s) cout<<"\tFALSE"; } } + int main() { /*