Monday, May 24, 2010

Syntax error in c++ program?

while () (ch=cin.get) ! =\n

Syntax error in c++ program?
while ( (ch = cin.get()) != '\n') { }
Reply:while ( (ch = cin.get) != \n) { }
Reply:while () (ch=cin.get) ! ="\n"


No comments:

Post a Comment