INTRODUCTION TO C++ PROGRAMMING YEAR 1
| Institution | UNIVERSITY |
| Course | BACHELOR OF SCIENCE... |
| Year | 1st Year |
| Semester | Unknown |
| Posted By | stephen oyake rabilo |
| File Type | |
| Pages | 33 Pages |
| File Size | 207.62 KB |
| Views | 4798 |
| Downloads | 0 |
| Price: |
Buy Now
|
Description
First Class In C++
Adapted from : http://www.cplusplus.com/doc/tutorial/tut1-1.html
Structure of a C++ program
Probably the best way to start learning a programming language is with a program. So here is our
first program:
// my first program in C++
#include <iostream.h>
int main ()
{
cout << "Hello World!";
return 0;
}
Hello World!
The left side shows the source code for our first program, which we can name, for example,
hiworld.cpp. The right side shows the result of the program once compiled and executed. The way to
edit and compile a program depends on the compiler you are using. Depending on whether it has a
Development Interface or not and on its version. Consult section compilers and the manual or help
included with your compiler if you have doubts on how to compile a C++ console program.
The previous program is the first program that most programming apprentices write, and its result is
the printing on screen of the "Hello World!" sentence. It is one of the simpler programs that can be
written in C++, but it already includes the basic components that every C++ program has. We are
going to take a look at them one by one:
Below is the document preview.
HSM 2204 Supply Chain Management
Trending!
A set of simplified notes on Supply Chain Management that are quick to understand
27 Pages
7318 Views
1 Downloads
412.7 KB
Fathers of Nations essays and answers
Recommended!
Trending!
Download Fathers of Nations essays questions and answers. KCSE Revision essays for the compulsory play.
20 Pages
16166 Views
55 Downloads
380.47 KB
Kitabu cha maswali na majibu ya Bembea ya Maisha pdf
Trending!
Kitabu hiki kinajumuisha maswali ya kujadili pamoja na maswali ya dondoo au muktadha. Pia kina majibu ya maswali.
30 Pages
15287 Views
11 Downloads
655.72 KB
Mwongozo wa Bembea ya Maisha
Trending!
Download Mwongozo wa Bembea ya Maisha. Mwongozo huu umechambua Vipengele vyote mf. Wahusika, maudhui, mbinu za lugha n.k
99 Pages
4165 Views
16 Downloads
833.94 KB
Mwongozo wa nguu za jadi
Recommended!
Trending!
Mwongozo wa nguu za jadi umechambua Vipengele vyote mf. Wahusika, maudhui, mbinu za lugha n.k
75 Pages
15199 Views
104 Downloads
862.34 KB
Mwongozo wa Mapambazuko ya Machweo
Mwongozo wa Mapambazuko ya Machweo umechambua Vipengele vyote mf. Wahusika, maudhui, mbinu za lugha n.k
209 Pages
1271 Views
5 Downloads
924.08 KB
Parliament of Owls study guide notes pdf
Trending!
Get comprehensive Parliament of Owls study guide notes pdf. All contents available. Themes, styles, characters etc
58 Pages
13346 Views
6 Downloads
414.73 KB
The Samaritan setbook guide notes
Recommended!
Trending!
Download the Samaritan by John lara study guide. All contents covered e.g themes, characters, styles, etc
101 Pages
20397 Views
44 Downloads
830.72 KB
Fathers of Nations study guide
Trending!
Get Fathers of Nations comprehensive study guide. All contents covered.
52 Pages
9116 Views
2 Downloads
914.63 KB
Silent song and other stories study guide notes
Trending!
Get Silent song and other stories study guide notes pdf.
63 Pages
10005 Views
6 Downloads
1.13 MB