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 | 6367 |
| 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.
KCSE 2021 KISWAHILI PP1,PP2,PP3 QUESTIONS & ANSWERS
Trending!
Download a copy of KCSE 2021 KISWAHILI PP1,PP2,PP3 QUESTIONS with comprehensive KNEC Marking Schemes, This is instrumental in aiding your revision for your fourth coming examinations.
12 Pages
12474 Views
1 Downloads
5.17 MB
KCSE 2021 CHEMISTRY PP1,PP2,PP3 QUESTIONS & ANSWERS
Trending!
Download a copy of KCSE 2021 CHEMISTRY PP1,PP2,PP3 QUESTIONS & ANSWERS with comprehensive KNEC Marking Schemes, This is instrumental in aiding your revision for your fourth coming examinations.
22 Pages
10868 Views
0 Downloads
7.54 MB
KCSE 2021 BIOLOGY PP1,PP2,PP3 QUESTIONS & ANSWERS
Trending!
Download a copy of KCSE 2021 BIOLOGY PP1,PP2,PP3 QUESTIONS with comprehensive KNEC Marking Schemes, This is instrumental in aiding your revision for your fourth coming examinations.
11 Pages
9936 Views
0 Downloads
3.52 MB
KCSE 2022 BIOLOGY PP1,PP2,PP3 QUESTIONS & ANSWERS
Trending!
Download a copy of KCSE 2022 BIOLOGY PP1,PP2,PP3 QUESTIONS with comprehensive KNEC Marking Schemes, This is instrumental in aiding your revision for your fourth coming examinations.
15 Pages
10040 Views
1 Downloads
4.49 MB
KCSE 2022 CHEMISTRY PP1,PP2,PP3 QUESTIONS & ANSWERS
Trending!
Download a copy of KCSE 2022 CHEMISTRY PP1,PP2,PP3 QUESTIONS & ANSWERS with comprehensive KNEC Marking Schemes, This is instrumental in aiding your revision for your fourth coming examinations.
24 Pages
9901 Views
0 Downloads
7.51 MB
KCSE 2022 ENGLISH PP1,PP2,PP3 QUESTIONS & ANSWERS
Trending!
Download a copy of KCSE 2022 ENGLISH PP1,PP2,PP3 QUESTIONS & ANSWERS with comprehensive KNEC Marking Schemes, This is instrumental in aiding your revision for your fourth coming examinations.
9 Pages
12303 Views
1 Downloads
3.18 MB
KCSE 2022 KISWAHILI PP1,PP2,PP3 QUESTIONS & ANSWERS
Trending!
Download a copy of KCSE 2022 KISWAHILI PP1,PP2,PP3 QUESTIONS with comprehensive KNEC Marking Schemes, This is instrumental in aiding your revision for your fourth coming examinations.
12 Pages
13155 Views
8 Downloads
4.48 MB
KCSE 2023 BIOLOGY PP1,PP2,PP3 QUESTIONS & ANSWERS
Trending!
Download a copy of KCSE 2023 BIOLOGY PP1,PP2,PP3 QUESTIONS with comprehensive KNEC Marking Schemes, This is instrumental in aiding your revision for your fourth coming examinations.
26 Pages
15719 Views
10 Downloads
2.81 MB
KCSE PHYSICS TOPICAL REVISION BOOKLET
Trending!
Download a copy of KCSE PHYSICS TOPICAL REVISION BOOKLET, This resource will help you in revision and preparation for your fourth coming examination. Get a copy!
213 Pages
10107 Views
2 Downloads
12.39 MB
GRADE 7 CREATIVE ARTS AND SPORTS TERM 1 LESSON NOTES
Trending!
Creative Arts is a description of various artistic activities that allow performers to use their
imaginations, creativity, and express ideas through a variety of mediums to passage a
message to the audience.
33 Pages
13020 Views
13 Downloads
1.65 MB