Im using MSVC++ and after severly attempts at correcting mistakes it says "error C2001: newline in constant" or somethign like that, and unless I put a ; in front of all my couts it come up as an error. Why is that? :confused:
Thanks,
Gutty
Printable View
Im using MSVC++ and after severly attempts at correcting mistakes it says "error C2001: newline in constant" or somethign like that, and unless I put a ; in front of all my couts it come up as an error. Why is that? :confused:
Thanks,
Gutty
It means you probably forgot to close a string literal:
Code:cout<<"Testing<<endl;
cout<<"1..2..3.."<<endl;
Waoh that was really fast. You mean I didn't put ; at the end of each line? I do though, it says the ; has to be BEFORE the cout. Very weird.
:confused:
Wait, I think i got it! Thanks alot man!:D