I thought I was going to learn C++ from learncpp.com, but I meet resistance in the first program I write!
I'm using Codeblocks, and when making a console application and naming it HelloWorld, the program is automatically written.
So the first problem is that the Hello World program that Codeblocks wrote didn't work. The only thing that happened was that my cmd promt popped up blank, like on the picture below. I thought it might have something to do with the fact that the code was different.
std::cout << "Hello World!";
-as it says on both learncpp.com and cpluplus.com, It said:
using namespace std;
cout << "Hello world!" << endl;
But when I changed it to the code example given by the sites, I just got the result on the image below with errors this time.