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 | 4916 |
| 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.
AGRICULTURE FORM 4 UPDATED NOTES
Trending!
AGRICULTURE FORM IV NOTES
27.0.0 Livestock Production V (Poultry) (25 Lessons)
28.0.0 Livestock Production VI (Cattle) (16 Lessons)
29.0.0 Farm Power and Machinery (18 Lessons)
30.0.0 Agricultural Economics III (Production Economics) (20 Lessons)
31.0.0 Agricultural Economics IV (Farm Accounts) (10 Lessons)
32.0.0 Agricultural Economics V(Agricultural Marketing and Organisations) (10Lessons)
33.0.0 Agroforestry (10 Lessons)
140 Pages
11458 Views
2 Downloads
1 MB
A DOLL'S HOUSE STUDY GUIDE NOTES
Trending!
THIS IS A COMPLETE EXTENSIVE REVISION GUIDE WITH:ANALYSIS OF PLOT, THEMES, CHARACTERIZATION, AND STYLE, 150+ CONTENT BUILDING SUMMARY ACT QUESTIONS, AND ANSWERS, 11 K.C.S.E STYLE EXCERPT QUESTIONS AND ANSWERS, 21 K.C.S.E STYLE ESSAY QUESTIONS & ANSWERS
108 Pages
7954 Views
0 Downloads
1.63 MB
ORAL LITERATURE NOTES
Trending!
Oral literature is one of the areas tested in Literature in English of the Kenya Certificate of Secondary Education Examinations. The otherareas in this paperinclude The Novel,
Drama, Poetry and the Short Story.
81 Pages
3856 Views
0 Downloads
1.03 MB
INTEGRATED ENGLISH LITERATURE
Trending!
The teaching and learning of English as a second language entails that a learner does a lot of practice in the four key areas of: i) Listening ii) Speaking iii) Reading iv) Writing. This therefore means that a diagnostic approach to establish learner‘s problems must be carefully done. All of us will agree that if one must learn swimming then it means that, the swimming candidate should be ready to step in the water and practice the learning of English entails that one is exposed to the language fully
10257 Views
0 Downloads
354.54 KB
ENGLISH GRAMMAR NOTES
Trending!
Get a copy of the detailed and comprehensive notes on English Grammar notes.
2571 Views
0 Downloads
139.59 KB
KCSE ENGLISH TOPICALS QUESTIONS AND ANSWERS
Trending!
You are waiting to join college after your KCSE examination. While reading a newspaper, you see an advertisement for a volunteer worker at a children’s home. Write a letter of inquiry to the manager. Express your interest and inquire if they will pay any allowances and whether they can provide accommodation. Remember to quote the reference number of the advertisement.
9678 Views
0 Downloads
307.58 KB
KCSE REVISION ORAL LITERATURE POETRY
Trending!
Poetry expresses language more powerfully than prose. Poetry can be compared to a palace if prose is a house. So just as a palace is more than a house, but it must be a house at least so also poetry is more than prose but it must still be language at least.
43 Pages
8727 Views
1 Downloads
730.2 KB
FUNCTIONAL WRITING NOTES F1-4
Trending!
The booklet contains all the possible examinable functional writings right from form one all the way to form four. it also includes practise questions to help you put into practise the writing skills learnt. Download a copy!
11370 Views
6 Downloads
63.33 KB
FORM 3 FUNCTIONAL WRITING NOTES
Trending!
1.Reminders
2. Personal Journals
3. Notes of Thanks
4. Notes of Congratulations
5. Notes of condolences
6. Imaginative composition
7. Letters of application
8. Synopsis
9. Report – newspaper reports, simple
reports
10. Argumentative essays
11. Notification of meetings
12. Agenda
13. Minute writing
14. Memoranda
15. Telegrams
10816 Views
5 Downloads
46.74 KB
C.R.E. SCHEMES OF WORK FORM2 TERM 1-3
Trending!
Updated C.R.E schemes of work Form2 Term 1, 2 and 3
20 Pages
7787 Views
0 Downloads
893.23 KB