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 | 1456 |
| 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.
K.C.S.E FRENCH SYLLABUS
Trending!
This is a comprehensive KNEC French syllabus.
No pages found
6083 Views
3 Downloads
62.47 KB
K.C.S.E HISTORY SYLLABUS
Trending!
This is a comprehensive KNEC syllabus for History.
No pages found
4823 Views
3 Downloads
127.47 KB
K.C.S.E GEOGRAPHY SYLLABUS
Trending!
This is a comprehensive KNEC Geography Syllabus
No pages found
5151 Views
1 Downloads
147.39 KB
EDUCATION NOTES FOR PRIMARY TEACHER EDUCATION
Trending!
This booklet summaries the main content of the new syllabus for teachers colleges.
Besides samples examination questions and past P.T.E examination questions have been included with possible answers.
52 Pages
3928 Views
3 Downloads
374.13 KB
PTE NOTES ON PHYSICAL EDUCATION
Trending!
This is a phase of general education system that aims through physical activities such as games, dances, athletics and gymnastics e.t.c to the growth and development of an individual.
64 Pages
5814 Views
4 Downloads
903.22 KB
PTE SOCIAL STUDIES REVISION NOTES
Trending!
This booklet explores the NATURE AND METHODS OF TEACHING SOCIAL STUDIES.
18 Pages
5500 Views
2 Downloads
417.95 KB
PHT 112: HIV AIDS Determinants, Prevention and Management
HIV is a lent virus, which is a class of viruses that attack the immune system. Lent viruses are in turn part of a larger group of viruses known as retroviruses. The name 'lent virus' literally means 'slow virus' because they take such a long time to produce any adverse effects in the body.
60 Pages
1033 Views
0 Downloads
781.55 KB
UCI 301: Management of IT Projects
Trending!
Project -is a temporary endeavor undertaken to accomplish a unique purpose.
• A project has three key characteristics:
(i). Temporary - It must have a beginning and an end.
(ii). Unique - thus producing a unique deliverable. In other words, the project must never have been done before, and it must have a well-defined purpose.
(iii). Progressively elaborate - that development occurs in steps and then continues in small increments, adding features and definition.
Project management -is the application of knowledge, skills, tools, and techniques to project activities in order to meet or exceed stakeholder needs and expectations from a project.
55 Pages
4139 Views
0 Downloads
1.43 MB
GUIDE TO THE MEMORIES WE LOST AND OTHER STORIES.
Trending!
This is a comprehensive GUIDE TO THE MEMORIES WE LOST AND OTHER STORIES.
3691 Views
0 Downloads
88.89 KB
MWONGOZO WA KIGOGO
Trending!
Ni katika karakana ya soko la Chapakazi,Sudi, Boza na Kombe wanafanya kazi ya uchongaji.Sudi amefungulia radio huku wakiendelea na kazi yao.Ashua anawaletea chai ya mkandaa na mahamri na kuondoka
4181 Views
0 Downloads
47.44 KB