I have an odd bug with the new version of Dev CPP. I know this code is correct, as it works fine and dandy on a prior version.
With the exception of the exit command that I've added, this is straight from the SAM's C++ in 21 days book. The compiler gives a missing terminating " on each line, a stray \ on each line, and says that a ; is missing from line 7. Adding a second " on each line, after the 't\"' of each statement changes the errors, but still doesn't work; and putting a space (which shouldn't even affect anything, if this was ANSI/ISO compatible) also changes the errors, seemingly randomly. It works fine on another computer with an older version of Dev CPP, so I am assuming it is a bug, probably with the sizeof command, since I haven't encountered it outherwise.Code:#include <iostream> using namespace std; int main() { int x; cout << "The size of an INT is:t\t\" << sizeof(int) << "bytes.n\"; cout << "The size of a SHORT int is:t\" << sizeof(short) << "bytes.n\"; cout << "The size of a LONG int is:t\" << sizeof(long) << "bytes.n\"; cout << "The size of a CHAR is:t\t\" << sizeof(char) << "bytes.n\"; cout << "The size of a FLOAT is:t\t\" << sizeof(float) << "bytes.n\"; cout << "The size of a DOUBLE is:t\" << sizeof(double) << "bytes.n\"; cout << "The size of a BOOL is:t\" << sizeof(bool) << "bytes.n\"; cout << "press any key to continue..."; cin >> x; return 0; }