Basic Lesson on C++ language. If you don't know what is
C++ Laguange, you can visit
here.
First you must know many syntax on C++ Language. Know writter will share how to printing text on C++. Using
cout syntax we will use it.
Below is the first lesson on C++ Language. We will try to printing text bassed C++ script.
#include<iostream> /* preproccessor with including C++ Library */
#include<stdlib.h> /* preproccessor with including standar library */
using namespace std;
int main()
{
cout<<"Hello world, I'm study C++ Language with Paper 4Share";
cout<<"\n";
cout<<endl;
system("pause");
}
Okay, that script you can give name a
myprogram.cpp.
Below the explain of Script :
The int main() syntax is the main program, and than program content is between syntax { and }.
The
cout<""; syntax is the syntax to printing text, the text placed between
"" (quote).
And don't worry, the and of script you must give
; .
The endl and \n systax is to use to move the line.
To compile that script, you can use Dev C++ Protable. You can get in
here
The output of that script is below
It's tested on Windows OS.
Happy
!!
Related Posts :
C++ Programming loops (for, while, do while) [PART 1]C++ Programming loops (for, while, do while) - What is programming loops??
programming loops is something that must be controlled by program… Read More...
C++ Programming loops + Examples (for, while, do while) [PART 2]Looping on Programming is it like a very important, so if you are want to be a programmer, you must understand that is Looping. what is loop… Read More...
C++ Input C++ Input - The last lesson, wriiter has sharing how to Printing Text C++ Using COUT Syntax [Basic Lesson]. And than now wriiter will explai… Read More...
[PHP] Get Site URL Protocol "HTTP or HTTPS"
[PHP] Get Site URL Protocol "HTTP or HTTPS" - In this case, some PHP developers need to check the protocol of the site is using HTTP o… Read More...
Printing Text C++ Using COUT Syntax [Basic Lesson]Basic Lesson on C++ language. If you don't know what is C++ Laguange, you can visit here.
First you must know many syntax on C++ Language. K… Read More...