>how did you get it quickly !
I happened to be active when you posted.

>it does not work as supposed to be
Your code is too complicated. Remove anything that's redundant, and be sure to walk through the execution on paper so that you know all of your variables have the right values. Then step through the code and verify that your paper run matches the actual execution. You several problems, try to figure out what I changed and why I changed it:

>how did you get it quickly !
I happened to be active when you posted.

>it does not work as supposed to be
Your code is too complicated. Remove anything that's redundant, and be sure to walk through the execution on paper so that you know all of your variables have the right values. Then step through the code and verify that your paper run matches the actual execution. You several problems, try to figure out what I changed and why I changed it:

error C2039: 'stackType' : is not a member of 'std'
error C2143: syntax error : missing ';' before '<'
error C2143: syntax error : missing ';' before '<'
'mystack' : undeclared identifier
left of '.push' must have class/struct/union type
left of '.top' must have class/struct/union type
left of '.pop' must have class/struct/union type

>yahh , my code is too complicated with comparing with your code
You can create good code by taking mediocre code and chipping away at it until nothing else can be removed. And of course, great code is designed to be elegant from the start. ;)

>But i want to know what does std:: mean ?
No doubt you have using namespace std; somewhere in your code. If you take that out, you have to prefix each name that's in the std namespace with std::.

>error C2039: 'stackType' : is not a member of 'std'
I didn't have your stackType, so I used the standard stack template. It's in the std namespace, but your custom stack type isn't, so you need to remove the std:: prefix.

>error C2143: syntax error : missing ';' before '<'
>error C2143: syntax error : missing ';' before '<'
>'mystack' : undeclared identifier
>left of '.push' must have class/struct/union type
>left of '.top' must have class/struct/union type
>left of '.pop' must have class/struct/union type
These are waterfall errors that stem from the first error. If you correct it, they'll disappear.

>You can check ending & starting of function's bracket by simply pressing the key (Ctrl + e ).
It sounds very much like you're describing a feature of your favorite text editor and not a universal capability. :icon_rolleyes: