Hi, My problem is ctrl-d or ctrl-z das not send the EOF(end of file signal) to the program running (I get ^z or ^d on the screen). The sys. is slackware8.0 KDE emacs g++. As I'm desperate ;>) On a win2000 with MS. visual 6.0 & dev-c++ not working too.
Any help is appreciated. Thank, Jeff #include <iostream.h> void main() { int sum = 0, num; cout << " enter a #"; cin >> num; while (!cin.eof()) { sum = sum + num; cout << " enter a #"; cin >> num; } cout << "sum:" << sum <<endl; } _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]