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 | 1521 |
| 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.
Mwongozo wa Mapambazuko ya Machweo
Mwongozo wa Mapambazuko ya Machweo umechambua Vipengele vyote mf. Wahusika, maudhui, mbinu za lugha n.k
209 Pages
735 Views
3 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
5537 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
11169 Views
34 Downloads
830.72 KB
Fathers of Nations study guide
Trending!
Get Fathers of Nations comprehensive study guide. All contents covered.
52 Pages
3695 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
4359 Views
5 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
3595 Views
0 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
3188 Views
1 Downloads
1.41 MB
AECO 141: Principles of Agricultural Economics
Economics is popularly known as the “Queen of Social Sciences”. It studies economic activities of a man living in a society. Economic activities are those activities, which are concerned with the efficient use of scarce means that can satisfy the wants of man. After the basic needs viz., food, shelter and clothing have been satisfied, the priorities shift towards other wants.
87 Pages
915 Views
0 Downloads
905.21 KB
CARDIOVASCULAR DISEASES
Trending!
These are diseases that affect structure and function of the heart
Most common cardiovascular diseases are
Coronary artery disease
Coronary heart disease
Ischemic heart disease
Pulmonary heart disease
Hypertensive heart disease
Inflammatory Heart disease
Valvular heart disease
Pericardial disease
Heart failure
Congenital heart disease
20 Pages
3236 Views
0 Downloads
332.46 KB
COMMUNICABLE DISEASES
Download full notes for communicable diseases for your studies .
Majority of diseases in Africa are
communicable and remain a major health
problem
• Communicable diseases are of clinical and
public health importance because;
–They are common
–Some cause severe disease, disability
and death
–Some cause widespread outbreaks
– Most of them are preventable by simple
measures
– Many are particularly serious and
common in infants and children
334 Pages
276 Views
0 Downloads
2.66 MB