while (select !=3){
switch(select){
case 1:cin >> pushnumber;newstack.Push(stack,pushnumber);break;
case 2:cin >> popnumber;break;
default:break;
}
}
did this I get these errors
1 2 3 4 5 6 7 8 9 10 11 12 13
>c:\users\faieq\documents\visual studio 2010\projects\stacks and queues\stacks and queues\stacks and queues.cpp(14): error C2628: 'Stack' followed by 'void' is illegal (did you forget a ';'?)
1>c:\users\faieq\documents\visual studio 2010\projects\stacks and queues\stacks and queues\stacks and queues.cpp(14): error C2556: 'Stack Stack::Push(int [],int)' : overloaded function differs only by return type from 'void Stack::Push(int [],int)'
1> c:\users\faieq\documents\visual studio 2010\projects\stacks and queues\stacks and queues\stacks and queues.cpp(9) : see declaration of 'Stack::Push'
1>c:\users\faieq\documents\visual studio 2010\projects\stacks and queues\stacks and queues\stacks and queues.cpp(14): error C2371: 'Stack::Push' : redefinition; different basic types
1> c:\users\faieq\documents\visual studio 2010\projects\stacks and queues\stacks and queues\stacks and queues.cpp(9) : see declaration of 'Stack::Push'
1>c:\users\faieq\documents\visual studio 2010\projects\stacks and queues\stacks and queues\stacks and queues.cpp(15): error C2143: syntax error : missing ';' before '.'
1>c:\users\faieq\documents\visual studio 2010\projects\stacks and queues\stacks and queues\stacks and queues.cpp(15): error C2143: syntax error : missing ';' before '.'
1>c:\users\faieq\documents\visual studio 2010\projects\stacks and queues\stacks and queues\stacks and queues.cpp(16): error C2226: syntax error : unexpected type 'Stack'
1>c:\users\faieq\documents\visual studio 2010\projects\stacks and queues\stacks and queues\stacks and queues.cpp(28): error C2226: syntax error : unexpected type 'Stack'
1>c:\users\faieq\documents\visual studio 2010\projects\stacks and queues\stacks and queues\stacks and queues.cpp(29): error C2143: syntax error : missing ';' before '.'
1>c:\users\faieq\documents\visual studio 2010\projects\stacks and queues\stacks and queues\stacks and queues.cpp(29): error C2143: syntax error : missing ';' before '.'
1>c:\users\faieq\documents\visual studio 2010\projects\stacks and queues\stacks and queues\stacks and queues.cpp(51): error C2264: 'Stack::Push' : error in function definition or declaration; function not called
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========