Hi, everyone, I am here to explain the C++ topic to you again. The topic we are explaining today is the "hello, world" topic. This topic can be said to be the first lesson for every programmer.
First, let’s take a look at the requirements of this question:
It can be said that it is very simple, but I still have to tell you about the pitfalls in this process, because I have only been through it many times.
1. Try to copy its sample output, because you may not be able to see the capitalization, spaces and the like.
2. C++ has very strict requirements for ";", just like Python's requirements for indentation. It is very strict. Programmers who are coding for the first time, please pay attention.
Without further ado, here’s the code:
#include <iostream>
using namespace std;
int main(){
cout<<"Hello,World!";
return 0;
}
Among them, "return 0;" must be typed in the new C++ version. I hope everyone will pay attention to it. Today's article ends here. See you in the next issue! !