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 | 6277 |
| 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 8 SOCIAL STUDIES NOTES (TERM 1-3)
Recommended!
Trending!
Download a copy of GRADE 8 SOCIAL STUDIES NOTES (TERM 1-3). The notes are precise, complete and comprehensive. This will serve you well!
41 Pages
25827 Views
96 Downloads
583.59 KB
GRADE 7 SOCIAL STUDIES NOTES
Recommended!
Trending!
Download a copy of GRADE 7 SOCIAL STUDIES NOTES. The notes are precise, complete and comprehensive. This will serve you well!
44 Pages
12859 Views
21 Downloads
545.43 KB
GRADE 7 TERM 1 LIFE SKILLS EDUCATION LESSON NOTES
Trending!
SELF AWARENESS means having an accurate understanding of ourselves.
That includes knowing our strengths, weakness, values, emotions and hopes and how they influence our behaviour in different circumstances.
9 Pages
9985 Views
1 Downloads
166.62 KB
MASWALI NA MAJIBU YA NGUU ZA JADI
Recommended!
Trending!
Download a copy of Maswali na Majibu ya Nguu za Jadi, This is a very vital resource in your revision and preparation for your upcoming exams. its contains questions and comprehensive marking schemes attached. This will serve you well.
37 Pages
15290 Views
29 Downloads
509.69 KB
Maswali na Majibu ya Fasihi Simulizi
Trending!
Download a copy of the Maswali na Majibu ya Fasihi Simulizi, This is a very vital resource in your revision and preparation for your upcoming exams. its contains questions and comprehensive answers/marking schemes attached. This will serve you well.
49 Pages
11409 Views
7 Downloads
1.54 MB
Maswali na Majibu ya Mapambazuko ya Machweo na Hadithi Nyingine
Recommended!
Trending!
Download a copy of Maswali na Majibu ya Mapambazuko ya Machweo na Hadithi Nyingine, This is a very vital resource in your revision and preparation for your upcoming exams. its contains questions and comprehensive marking schemes attached. This will serve you well.
44 Pages
15353 Views
27 Downloads
791.69 KB
MASWALI NA MAJIBU YA BEMBEMBEA YA MAISHA
Trending!
Download a copy of MASWALI NA MAJIBU YA BEMBEMBEA YA MAISHA, This is a very vital resource in your revision and preparation for your upcoming exams. its contains questions and comprehensive marking schemes attached. This will serve you well.
27 Pages
9765 Views
8 Downloads
1.61 MB
A SILENT SONG ESSAYS QUESTIONS AND ANSWERS
Recommended!
Trending!
Get a copy of the A SILENT SONG ESSAYS QUESTIONS AND ANSWERS, This is a very vital resource in your revision and preparation for your upcoming exams. its contains questions and comprehensive answers/marking schemes attached. This will serve you well.
35 Pages
12949 Views
30 Downloads
969.77 KB
Maudhui katika Nguu za Jadi
Recommended!
Trending!
Ukabila ni hali ya kupendelea mtu, watu au Jamii fulani kutokana na misingi ya
kabila. Upendeleo huu huweza kuhusisha mambo mengi kama vile ajira, elimu,
makazi, vyeo, na kadhalika. Katika riwaya hii...
7 Pages
17880 Views
33 Downloads
465.29 KB
Wahusika wa Nguu za Jadi
Trending!
Wahusika wakuu: Hawa ni wahusika ambao hujitokeza mahali kwingi katika fasihi kiasi cha kwamba wanajitokeza kuanzia mwanzo wa kazi ya fasihi hadi mwisho. Kwa kawaida wahusika hawa hubeba maudhui makuu ya fasihi.
31 Pages
12005 Views
5 Downloads
495.46 KB