PDA

View Full Version : pasting my code down # include main () { char endp; char print; cout << "The print p



sana.pari
04-24-2011, 06:02 PM
i am pasting my code down # include main () { char endp; char print; cout << "The print prog" << "\n"; cout << "enter the Character or word to print" << "\n"; cin >> print; cout << print; cin >> endp; } the program ends after taking the first input. Why dont it takes the 2nd input (endp) from user

Support
04-24-2011, 06:02 PM
Dear Student,
You are facing this problem due to abnormal termination of your output screen. Please add the line system("pause"); before the closing curly brace } of your program.