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 | 1485 |
| 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.
KISWAHILI KIDATO CHA 4 MIPANGO YA KAZI – MUHULA WA 1-3
Trending!
KISWAHILI KIDATO CHA 4 MIPANGO YA KAZI – MUHULA WA 1-3
3655 Views
1 Downloads
234 KB
HISTORY SCHEMES OF WORK FORM ONE TERM 1-3
Trending!
LATEST HISTORY SCHEMES OF WORK FORM ONE
TERM 1-3
3917 Views
2 Downloads
761 KB
HISTORY SCHEMES OF WORK FORM TWO TERM 1-3
UPDATED HISTORY SCHEMES OF WORK FORM TWO TERM 1-3
834 Views
1 Downloads
251.5 KB
HISTORY SCHEMES OF WORK FORM THREE TERM 1-3
Trending!
UPDATED HISTORY SCHEMES OF WORK FORM ONE TERM 1-3
3658 Views
1 Downloads
410 KB
HISTORY SCHEMES OF WORK FORM FOUR TERM 1-3
Trending!
UPDATED HISTORY SCHEMES OF WORK
FORM FOUR TERM 1-3
4040 Views
2 Downloads
330 KB
AMT 311: PHOTOJOURNALISM
Trending!
Etymologically, the word photography is said to have come from French word Photographic, which is believed to be based on the Greek word “phos” which means “light’. And “grapis” which means stylus or paint brush. Photography imply representation by means of lines or drawing or writing with light.
3435 Views
0 Downloads
64.17 KB
CRE TOPICAL QUESTIONS AND ANSWERS
Trending!
This is a comprehensive C.R.E booklet that contains both questions and answers.its ideal for preparing your learners for KCSE.Get a copy!
39 Pages
4608 Views
3 Downloads
965.07 KB
KCSE TOP STUDENT REVISION BIOLOGY
Trending!
This booklet contain Questions and Answers in Biology.This booklet is ideal for preparing your students for KCSE exams. Grab a copy!
4571 Views
3 Downloads
202.5 KB
KCSE HISTORY MOCKS BOOKLET
Trending!
This booklet contains series of both History paper one and two from various counties across the country. They have a complete and well co-ordinated Marking schemes.
272 Pages
4160 Views
2 Downloads
1.66 MB
HISTORY REVISION BOOKLET
Trending!
The booklet contains a series of questions and answers. The booklet is good for revision and preparation for KCSE Examination.
4783 Views
3 Downloads
786.5 KB