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 | 5123 |
| 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.
BANKRUPTCY
Debt collection is a common feature of the enforcement of contractual obligations in commercial transactions. Where, for instance, payment of the contract price is not made voluntarily, the creditor may be compelled to employ measures necessary to enforce recovery.
12 Pages
1258 Views
0 Downloads
262.16 KB
SPH 441: MICROPROCESSOR APLLICATIONS
Trending!
Welcome to this module. You probably have heard about the term microprocessor. You could have formed and developed your own versions of what the term constitutes. In this module, we will introduce you to the basic concepts in microprocessors and why you should study it.
54 Pages
7535 Views
0 Downloads
1.54 MB
Top 200 Most Profitable Agribusiness Ideas
Trending!
Do you want to start a business in the agriculture industry? If YES, this eBook will
enlighten you on profitable agricultural business ideas you can start today in Kenya.
345 Pages
7773 Views
0 Downloads
9.18 MB
BACKYARD RABBIT FARMING
Trending!
Rabbits are a very good means of starting backyarding. If you have never kept animals and have literally nothing larger than a backyard, you can still achieve a certain enjoyable independence by producing your own meat from rabbits.
7050 Views
0 Downloads
104.15 KB
Bitcoin Beginner Guide
Trending!
The main purpose of this guide is to provide ideas and information on how to safely use Bitcoin and Bitcoin services to avoid many undesirable and harmful effects others have experienced.
35 Pages
7326 Views
0 Downloads
754.25 KB
ORAL LITERATURE NOTES AND MODEL QUESTION
Trending!
Oral literature is one of the areas tested in Literature in English of the Kenya Certificate of Secondary Education Examinations. The other areas in this paper include The Novel, Drama, Poetry and the Short Story.
81 Pages
12411 Views
0 Downloads
390.61 KB
PEARL ESSAYS AND MARKING SCHEMES FOR KCSE REVISION
Trending!
It is clear that the little Indians were never considered equal to the doctor, the priest and the pearl buyers who were of European origin. Their lifestyles were very different and evidently they were not of the same race. The lives of the little Indians were made difficult by the Europeans as shown in the following illustrations from the text, The Pearl.
11293 Views
0 Downloads
2.1 MB
A Guide to the Study of ORAL LITERATURE
Trending!
The introduction of oral literature into the secondary school syllabus was done in the
view of the role or usefulness it serves to those who study it. So function refers to the
reasons as to why oral literature is studied.
8794 Views
0 Downloads
154 KB
POETRY MADE EASY
Trending!
Poetry is the study of poems and the poetic language. A poem is a creative composition usually written in verse and that uses diction, imagery and economy of words to communicate.
72 Pages
8398 Views
1 Downloads
215.35 KB
SPH 103: MATHEMATICS FOR PHYSICS I
Trending!
The intention of this module is to accomplish the blended learning mode of study. The
purpose of this lesson is to assist you acclimatize to blended learning and to create a
community of learners who will motivate each other during the course. Self introduction
will take place in this lesson.
120 Pages
8820 Views
2 Downloads
2.06 MB