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 | 4880 |
| 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.
THEMES IN BLOSSOMS OF THE SAVANNAH
Trending!
H.R Ole Kulet effectively captures various issues in his novel Blossoms of the Savannah. He explores the delicate balance between traditions and modernity. Other issues captured include change, determination, family ties, gender inequality, love,greed and materialism, moral decadence, education and betrayal.
9710 Views
1 Downloads
108.47 KB
THE PEARL SAMPLE ESSAY QUESTIONS & ANSWERS
Trending!
Here are some KCSE Revision essay questions on The Pearl for teachers and students of Literature
35 Pages
9304 Views
0 Downloads
1.23 MB
INHERITANCE KCSE ESSAY QUESTIONS AND ANSWERS
Trending!
The booklet contains inheritance kcse essay questions and answers. its ideal for purpose of revision.
9682 Views
1 Downloads
91.54 KB
A DOLL’S HOUSE ESSAY QUESTIONS & ANSWERS
Trending!
After looking at easy ways to analyze A Doll’s House for Kenyan secondary schools, let us now have some practice questions for students and teachers.
9226 Views
0 Downloads
149.01 KB
MEMORIES WE LOST KCSE ESSAY QUESTIONS AND ANSWERS
Trending!
The booklet contains memories we lost KCSE essay questions and answers. Its ideal material for your revision.
10430 Views
1 Downloads
170.57 KB
THE PEARL ANALYSIS -THEMES (Sample Essays Questions with Answers)
Trending!
This articles covers themes in The Pearl with Sample Essays Questions with Answers.
9508 Views
1 Downloads
139.15 KB
BEC 3150: PRINCIPLES OF MACROECONOMICS
Trending!
UPDATED NOTES ON PRINCIPLES OF MACROECONOMICS
15 Pages
10750 Views
0 Downloads
391.37 KB
BBM 124: PRINCIPLES OF MARKETING
UPDATED NOTES ON PRINCIPLES OF MARKETING
60 Pages
1714 Views
0 Downloads
324.01 KB
ARE 401: CHRISTIAN RESPONSE TO CONTEMPORARY ISSUES
Trending!
UPDATED NOTES ON CHRISTIAN RESPONSE TO CONTEMPORARY ISSUES
9659 Views
2 Downloads
44.98 KB
SPH202: Modern Physics
Trending!
Updated notes on modern Physics
97 Pages
10242 Views
0 Downloads
7.24 MB