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 | 6142 |
| 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.
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
17858 Views
12 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
4504 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
16293 Views
114 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
1416 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
14927 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
22791 Views
45 Downloads
830.72 KB
Fathers of Nations study guide
Trending!
Get Fathers of Nations comprehensive study guide. All contents covered.
52 Pages
10181 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
12053 Views
8 Downloads
1.13 MB
KCSE CHEMISTRY 1996-2009 PP1 & PP2 QUESTIONS AND ANSWERS
Trending!
Download a copy of the KCSE CHEMISTRY 1996-2009 PP1 & PP2 QUESTIONS AND ANSWERS. This is a great revision material for chemistry. Attached is a comprehensive KNEC Marking Scheme for your reference.
311 Pages
9537 Views
2 Downloads
8.14 MB
F3 Bio pp1 Dec holiday assignment with ms 2024
Trending!
Download Form 3 Bio pp1 December holiday assignment with Marking Schemes.
17 Pages
9545 Views
1 Downloads
1.41 MB