My program runs without error. It has few cout statements. But I cant see any output on console. I tried using cin.ignore, but that does not seem to have any effect. I press run, and program runs, without showing any output screen. When I use system("Pause"), my console shows only one line i.e press any key to continue. How can I see my output???
Aside from main() that it should be declared as int, your program runs (and outputs) right on my computer.
Your is likely to be a setting error, try to see if your project is a console application