Translate

Showing posts with label string. Show all posts
Showing posts with label string. Show all posts

A Basic C++ Program – How To

————————————————————————————
#include <iostream.h> //This is a simple Hello World Program.
int main()
{
cout<<”Hello World”;
return 0;
}
————————————————————————————
//This is a simple Hello World Program.
That line of code is a comment. It is useful for com

About Print Multiple Lines and The String in C++


Program listings in this section will print the message (output) and will be shown on multiple lines. In the previous tutorial we use \ n (backslash-n) then the tuorial this time we'll use the command standard C++ where the command that we will use "endl;" (previously the old version taken from the command standard basis of C). example:

#include <iostream>
using namespace std;
int main() {