Community
Participate
Working Groups
Given this c++ code: cout << "Use \\n to cause a newline; use \\t to cause a tab." << '\n'; cout << "Use \\a to cause a beep (only on some platforms)!"; AND this c code: printf("Use \\n to cause a newline; use \\t to cause a tab. \n"); printf("Use \\a to cause a beep (only on some platforms)! \n"); The compiler treats the \\n or \\t or \\a as just a \n or \t or \a instead of just treating that combination as two characters to be printed out. This manifests itself in a debug run, and when run in command line. \\ by itself does get printed as just \. Thanks for your help!
I am using Juno as well. We tried this code with just the command line gcc compiler and it worked fine. I am using minGW as the compiler for this, so the gcc standalone test shows that it is most likely an eclipse problem. Thanks!