endl 'semantic error' in Rel2.6.020
Posted: Thu Jun 28, 2012 2:35 pm
Hi guys. At long last I'm taking Tod's advice to eliminate printf in favor of cout. it's working nicely but the codan module in Rel_2.6.020 seems to be telling me that my usage of endl is a 'semantic error' with the following code and includes configured. The file starts with:
if instead I say:
I get an error telling me 'std' is ambiguous, and endl throws the same errors.
Finally, in either case, even though these "bug icon" errors are flagged, the code builds successfully. What do I need to do to make endl tolerated?
Here's the code and the error: Here are the includes:
Code: Select all
using std::string;
using std::cout;
using std::endl;
using std::cin;
Code: Select all
using namespace std;
Finally, in either case, even though these "bug icon" errors are flagged, the code builds successfully. What do I need to do to make endl tolerated?
Here's the code and the error: Here are the includes: