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 | 1607 |
| 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.
PRE PRIMARY 2 TERM 3 EXAMS SET 1
Trending!
Get a copy of the full set of PRE PRIMARY 2 TERM 3 EXAMS. This is a great resource for your leaners.
6 Pages
5847 Views
5 Downloads
636.3 KB
PRE PRIMARY 2 TERM 3 EXAMS SET 2
Trending!
Grab a copy of the full set PRE PRIMARY 2 TERM 3 EXAMS and test your learners grasp of what has already been covered.
8 Pages
3847 Views
1 Downloads
827.34 KB
PRE PRIMARY 2 TERM 3 EXAMS SET 3
Trending!
Download the full set of the PRE PRIMARY 2 TERM 3 EXAMS for your learners.
6 Pages
5431 Views
4 Downloads
716.44 KB
HOW TO PASS KCSE MATHS
Trending!
Before I get into the tips for how to study math let me first say that everyone studies
differently and there is no one right way to study for a math class. There are a lot of tips
in this document and there is a pretty good chance that you will not agree with all of them or find that you can’t do all of them due to time constraints.
11 Pages
4212 Views
1 Downloads
102.61 KB
CHEMISTRY Q&A BOOKLET
Trending!
The booklet contains series of topical Questions and answers. Its idea for your last minute preparations for Examination.
3880 Views
1 Downloads
578 KB
REVISION AGRICULTURE FORM ONE TO FORM FOUR TOPICS
Trending!
The booklet contains topical Questions and Answers from form one to form four. This is a great material for KCSE preparation. Download today!
3670 Views
0 Downloads
433.5 KB
AGRICULTURE REVISION BOOKLET
Trending!
The following relevant questions and their answers in this topic will help and motivate the user to comprehend and understand the required concepts and practices:
164 Pages
4344 Views
4 Downloads
1.88 MB
CRE SCHEMES OF WORK PP2 TERM1
Trending!
UPDATED CRE SCHEMES OF WORK PP2 TERM1
14 Pages
3633 Views
0 Downloads
470.52 KB
ENVIRONMENTAL ACTIVITIES SCHEMES OF WORK PP2 TERM1
Trending!
UPDATED ENVIRONMENTAL ACTIVITIES SCHEMES OF WORK PP2 TERM1
18 Pages
3478 Views
0 Downloads
481.33 KB
MATHEMATICS SCHEMES OF WORK PP2 TERM1
Trending!
UPDATED MATHEMATICS SCHEMES OF WORK PP2 TERM1
20 Pages
3908 Views
1 Downloads
461 KB