diff --git a/program2.cpp b/program2.cpp index 206d622..8bbfbf7 100644 --- a/program2.cpp +++ b/program2.cpp @@ -2,10 +2,12 @@ #include #include using namespace std; + void check(stack s) { /* - objective:given a stack of integers,check whether each successive pair of numbers in the stack is consecutive or not. + Objective:given a stack of integers,check whether each successive pair of numbers in the stack is consecutive or not. + input parameters: s-integer object of stack return value:none