Hi,
1) This is not a general programming forum. So question like "Why does my code not work" are not allowed here.
2) If you post code, please use code tags (The # symbol in the new forum post editor)
3) If you have problems and post a question to any forum, you have to provide useful information, your post has none... To answer your post (and not loose tons of time by the guy who has to answer) Always add the following information to your posts:
1) Operating system
2) Compiler, compiler version, software version (codeblocks version)
3) What have you done
4) What should your program do
5) What it actually does
6) Do you have any idea why it does not work?
7) Have you tried already something? What have you tried?
Things like
How come my my vector does not display the previous results?
should more be like
I expect my program to output the content of the vector variable, because if i enter the menu 3) my program should work trough loop in line number XX.
The expected output is "1, 2, 3" but i actually get "". What could be the cause of this? I have used the debugger but XXXX
Use the debugger to search for your error. You can find plenty youtube videos. Search for "codeblocks debugger".
I hope my list helps you to post better questions the next time...
Have a nice day