Hey,
I was messing around with a simple C++ program just to make sure I still knew some C++, and I noticed that it wouldn't compile with a couple of elements present.
Is the first line or the second line standard C++? GCC wouldn't compile with the first line, but was fine with the second one.
And is the <string> header standard? Dev-C++ had it, but GCC doesn't like it.
#include <string>
Thanks!
I was messing around with a simple C++ program just to make sure I still knew some C++, and I noticed that it wouldn't compile with a couple of elements present.
Is the first line or the second line standard C++? GCC wouldn't compile with the first line, but was fine with the second one.
Code:
std::cout<<endl;
std::cout<<"\n";
And is the <string> header standard? Dev-C++ had it, but GCC doesn't like it.
#include <string>
Thanks!