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 | 4966 |
| 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.
GRADE 5 TERM 3 SOCIAL STUDIES RECORDS OF WORK
Trending!
Enhance term 3 of SOCIAL STUDIES with the Super Minds SOCIAL STUDIES RECORDS OF WORK. Perfect for teachers seeking comprehensive curriculum guidance.
10 Pages
8629 Views
0 Downloads
134.06 KB
GRADE 5 TERM 3 PHYSICAL HEALTH EDUCATION SCHEMES OF WORK
Trending!
Enhance term 3 of PHYSICAL HEALTH EDUCATION with the Super Minds Schemes of Work. Perfect for teachers seeking comprehensive curriculum guidance.
17 Pages
8067 Views
0 Downloads
711.09 KB
GRADE 5 TERM 3 MUSIC SCHEMES OF WORK
Trending!
Enhance term 3 of MUSIC with the Super Minds Schemes of Work. Perfect for teachers seeking comprehensive curriculum guidance.
6 Pages
6847 Views
0 Downloads
367 KB
GRADE 5 TERM 3 MATHEMATICS SCHEMES OF WORK
Trending!
Enhance term 3 of Grade 5 MATHEMATICS with the Oxford's let's do Mathematics Schemes of Work. Perfect for teachers seeking comprehensive curriculum guidance.
14 Pages
8303 Views
0 Downloads
315.81 KB
GRADE 5 KISWAHILI DADISI SCHEMES OF WORK TERM 3
Trending!
Enhance term 3 of Grade 5 KISWAHILI with the DADISI SCHEMES OF WORK. Perfect for teachers seeking comprehensive curriculum guidance.
11 Pages
8704 Views
0 Downloads
179.4 KB
GRADE 5 TERM 3 IRE SCHEMES OF WORK
Trending!
Enhance term 3 of Grade 5 ISLAMIC RELIGIOUS EDUCATION with the Super Minds Schemes of Work. Perfect for teachers seeking comprehensive curriculum guidance.
10 Pages
8189 Views
0 Downloads
437.88 KB
GRADE 5 TERM 3 HOME SCIENCE SCHEMES OF WORK
Trending!
Enhance term 3 of Grade 5 HOME SCIENCE with the MTP Schemes of Work. Perfect for teachers seeking comprehensive curriculum guidance.
10 Pages
9702 Views
0 Downloads
390.65 KB
GRADE 5 TERM 3 ENGLISH SCHEMES OF WORK
Trending!
Enhance term 3 of Grade 5 ENGLISH with the SKILLS IN ENGLISH Schemes of Work. Perfect for teachers seeking comprehensive curriculum guidance.
11 Pages
10568 Views
0 Downloads
503.53 KB
GRADE 5 TERM 3 CRE SCHEMES
Trending!
Enhance term 3 of Grade 5 CRE with the LONGHORN Schemes of Work. Perfect for teachers seeking comprehensive curriculum guidance.
11 Pages
7336 Views
0 Downloads
479.38 KB
GRADE 5 TERM 3 ART & CRAFT SCHEMES OF WORK
Trending!
Enhance term 3 of Grade 5 ART & CRAFT with the BOOKMARK Schemes of Work. Perfect for teachers seeking comprehensive curriculum guidance.
8 Pages
6756 Views
0 Downloads
387.16 KB