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 | 1553 |
| 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.
HISTORY UPDATED NOTES FORM 1-4 BOOKLET
Trending!
History is an account of events that took place in the past. History may also be defined as a branch of knowledge which deals with past events of human beings and their response to their environment over the years.
5012 Views
6 Downloads
733.65 KB
HISTORY FORM 2 SIMPLIFIED NOTES
Trending!
Download a copy of the simplified comprehensive notes on History Form 2 Syllabus.
4710 Views
4 Downloads
108.92 KB
HISTORY FORM 1 SIMPLIFIED NOTES
Trending!
Download a copy of the simplified notes for the Form one History syllabus.
4058 Views
1 Downloads
68.07 KB
HISTORY FORM 3 SIMPLIFIED NOTES
Trending!
Hallo. Welcome to History and Government for form 3. We are going to learn about European invasion of Africa and the process of colonisation, establishment of colonial rule in Kenya, colonial administration, social and economic developments in Kenya during the colonial period, political developments and the struggle for independence.
7104 Views
7 Downloads
43.28 KB
HISTORY FORM 4 SIMPLIFIED NOTES
Trending!
World War I or the First World War was a war fought by many countries, which is why it is called a "world" war. It started in 1914 and ended in 1918. 135 countries took part in World War I, and more than 15,000,000 people died in the war.
4342 Views
6 Downloads
798.42 KB
KCSE HISTORY TOPICALS
Trending!
Download past KCSE history topical question with comprehensive answers!
211 Pages
3838 Views
1 Downloads
1.21 MB
KCSE BUSINESS STUDIES TOPICALS
Trending!
The topical questions comes with comprehensive Marking schemes.
257 Pages
3441 Views
0 Downloads
1.06 MB
KCSE CRE TOPICALS
Trending!
Download the latest CRE topical Questions and answers for Past KCSE Papers!
166 Pages
3714 Views
0 Downloads
1.37 MB
BAC202: COST ACCOUNTING I
Trending!
This course helps the learners to understand the various cost concepts, its classifications and how its usful for decision making
97 Pages
3445 Views
0 Downloads
1.52 MB
BMS 200: BUSINESS STATISTICS
Trending!
DOWNLOAD UPDATED NOTES ON BUSINESS STATISTICS
60 Pages
3179 Views
0 Downloads
1.65 MB