WANT TO TRY C++ PROGRAMMING?
THE POWER OF C++ PROGRAMING (LESSON 1 TO LESSON 4) With Bonus Topics
Lesson 1
Hello World
Hi guys! let's try simple coding and printout "Hello World"
Note: I suggest try the c++ compiler online for those can't donwload te application.
Now try this code to printout "Hello World in C++
using namespace std;
int main()
{
cout<<"Hello World";
return 0;
}
The std::cout statement in C++ is a built-in output function that allows the computer to display.
Certain text or number on the screen. When printing strings (or text), the syntax is as follows:
cout << “Hello World”;
A pair of double quotes (") surround the text to be outputted, and the entire line of code finishes with a semicolon (;). We can't use the std::cout function right away since we don't have the header file we need to utilize these standard input/output methods. To do so, we'll need to use the built-in library. There are lot of methods in calling the Hello World just like cooking an egg there are a lot of ways in cooking egg.