Skip to main content

Basic C++ Program to Print Hello World !


Basic C++  Program to Print Hello World !

download C++ source code file


here the text written after " // " or in between " /* " and " */ " is simply comment lines. compiler does not compile these lines, or we can say that these lines are not the part of program. we uses comments for making the program easy to read.

one line comment is written after " // "  and if we need comment of the lines more than one then we put the lines between" /* " and " */ "

" # " called the processor
" iostream"  is called  Input / Output stream
" using namespace std; "tells the compiler to use the std namespace
" int main() "  stands for ' main body of the program '
" return 0; " means ' the end of the program'
" cout<<" is the syntax for the output in C++, we used here HELLO WORLD in commas so it prints the text as it is written. we can write any text including characters, numbers it will print. If we do not use the commas it will give the value of the variable written just after " << "( here we didn't declare any variable, see it in the next programs , addition  or division )

the output in the above file is taken on the Ubuntu operating System. Before running the program, make sure that the compiler is  installed in your computer.
e.g.  for windows many  compilers are available , code block,
In Ubuntu  you can use g++ or code block.

for Installing g++ in Ubuntu just open the terminal using command line ctrl+T
and type sudo apt-get install g++ and hit Enter

Comments

Popular posts from this blog

Online Captcha work without investment daily payment fraud website

There are many ways of Earning online as this is the time of the Internet. We can earn a lot of money by working online but it is not so easy too, but that doesn't mean impossible. people are earning huge money from Online. but there are a lot of the websites making people fool and looting money from them. so if you are looking for the genuine methods of earning online you are at right place. what I'm going to describe in this article: Is it Really Possible to Earn a Good Income Online? Genuine Ways to earn online. Be aware of the Fraud; Online Typing Jobs-Scam-Fraud website Is it Really Possible to earn a Good Income Online? in one word my answer is "Yes" there are a lot of people who work online, earning a good income. They work from their workplace. They are their own boss of their work. But like a Job, they give full time or part-time to work on a daily basis. It is not like you work to earn online for 2,3 or 4 days and not getting results then .....

How to Make Tiny and Easy USB OTG Cable at Home : 5 Steps

Make Your Own OTG at Home Step-1 these apparatuses are required to make an O.T.G. at home by using waste, data cable, headphone lead etc. you can use another wire in place of the headphone lead but it should be soft for making the life long of the OTG feviquick is used to paste the wires after soldering so that they will not be loose, for making it attractive you may use coloured wires.try to make it tiny. it looks better Step-2 cut the wire and take 10-15 cm from four wires of it. Step-3 take waste micro-A USB and one side of USB Type-A and remove the plastic from it. Step-4 connect the one end of the wire (from step-2)to micro-A USB and the another end of it to USB Type-A connections are according to the above Picture. Step-5 Now put one drop of the feviquick, at every joint to make it strong, Now your OTG is ready to use

How to Install Master PDF Editor v5.0.3 on Ubuntu 18.04 and 19.04

What is Master PDF Editor ? Master PDF is an application which allows you to edit, create or view PDF documents. You can also encript your documents with passwords by using this application. So, This application would be very usefull for you. Master pdf editor application is available for several OS, Operating Systems, such as Windows, Linux, Mac OS. How to Install Master PDF Editor ? (Ubuntu) Download the master pdf editor application package via terminal as follows: root@munendra-latitude-e6430:/home/munendra# wget https://code-industry.net/public/master-pdf-editor-5.4.38-qt5.amd64.deb --2019-08-06 17:12:35-- https://code-industry.net/public/master-pdf-editor-5.4.38-qt5.amd64.deb Resolving code-industry.net (code-industry.net)... 136.243.89.42 Connecting to code-industry.net (code-industry.net)|136.243.89.42|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 10847830 (10M) [application/octet-stream] Saving to: ‘master-pdf-editor-5.4.38-qt5.amd6...