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 | 1968 |
| 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.
Introduction to Geographical Information systems
Designed to provide the country with high level power in geospatial information science
58 Pages
1616 Views
1 Downloads
317.48 KB
GRADE 5 TERM 3 SCIENCE SCHEMES OF WORK
Trending!
Enhance term 3 of Grade 5 Science & Technology with the Super Minds Schemes of Work. Perfect for teachers seeking comprehensive curriculum guidance.
11 Pages
3189 Views
3 Downloads
540.08 KB
GRADE 5 SUPER MIND SOCIAL STUDIES SCHEMES OF WORK TERM 3
Trending!
Enhance term 3 of Grade 5 SOCIAL STUDIES with the Super Minds Schemes of Work. Perfect for teachers seeking comprehensive curriculum guidance.
10 Pages
3404 Views
4 Downloads
439.69 KB
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
3351 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
3009 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
2955 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
3300 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
3631 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
3445 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
3955 Views
0 Downloads
390.65 KB