Install Desktop Development with C++ on Visual Studio Community
Hello World!
#include <iostream> // We import code of other persons
// The main function which returns an integer
int main(){
std::cout << "Hello World!\n"; // We print "Hello World!" to console
return 0; // The return value of the function
}
Statements are fragments of the C++ program that are executed in sequence. The body of any function is a sequence of statements.
The main function is a function that run first one when program runs.
Leave a Reply