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 | 4893 |
| 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.
KCSE HISTORY TOPICALS
Trending!
Download past KCSE history topical question with comprehensive answers!
211 Pages
8492 Views
1 Downloads
1.21 MB
KCSE BUSINESS STUDIES TOPICALS
Trending!
The topical questions comes with comprehensive Marking schemes.
257 Pages
9703 Views
1 Downloads
1.06 MB
KCSE CRE TOPICALS
Trending!
Download the latest CRE topical Questions and answers for Past KCSE Papers!
166 Pages
9465 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
9802 Views
0 Downloads
1.52 MB
BMS 200: BUSINESS STATISTICS
Trending!
DOWNLOAD UPDATED NOTES ON BUSINESS STATISTICS
60 Pages
8255 Views
0 Downloads
1.65 MB
RISK AND INSURANCE
Trending!
UPDATED NOTES ON RISK AND INSURANCE
94 Pages
2070 Views
0 Downloads
1.13 MB
ECT210: GENERAL METHODS OF TEACHING
Trending!
UPDATED NOTES ON GENERAL METHODS OF TEACHING
35 Pages
9776 Views
0 Downloads
323.15 KB
AEN203: MORPHOLOGY, SYNTAX AND SEMANTICS
Trending!
UPDATED LECTURE NOTES ON MORPHOLOGY, SYNTAX AND SEMANTICS
35 Pages
10491 Views
1 Downloads
339.63 KB
AGE102: PHYSICAL GEOGRAPHY (1)
Trending!
This course introduces physical Geography, as a branch of geography
that brings together and interrelates the important elements of physical environment (nonliving - solid, liquids and gases) and biological environment (living) the most important being human beings.
102 Pages
8337 Views
2 Downloads
597.52 KB
ARE302: THE CHURCH IN AFRICA
Trending!
The course covers the origin and methodology used by missioneries in the inception of christianity in various parts of Africa. It also explores the major themes in the history of christianity in Africa
104 Pages
10042 Views
3 Downloads
1.67 MB