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 | 6372 |
| 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.
GRADE 8 KISWAHILI EXAMS SET 1
Trending!
Download a copy of GRADE 8 KISWAHILI EXAMS SET 1 with a comprehensive and elaborate marking scheme attached.
5 Pages
10412 Views
0 Downloads
343.17 KB
GRADE 8 MATHS EXAMS SET 1
Trending!
Download a copy of GRADE 8 MATHS EXAMS SET 1 with a comprehensive and elaborate marking scheme attached.
7 Pages
15988 Views
13 Downloads
1.04 MB
GRADE 8 PRE-TECHNICAL EXAMS SET 1
Trending!
Download a copy of GRADE 8 PRE-TECHNICAL EXAMS SET 1 with a comprehensive and elaborate marking scheme attached.
12 Pages
13417 Views
12 Downloads
472.12 KB
GRADE 8 SOCIAL STUDIES EXAMS SET 1
Trending!
Download a copy of GRADE 8 SOCIAL STUDIES EXAMS SET 1 with a comprehensive and elaborate marking scheme attached.
14 Pages
10914 Views
5 Downloads
1.13 MB
GRADE 8 VISUAL ARTS EXAMS SET 1
Trending!
Download a copy of GRADE 8 VISUAL ARTS EXAMS SET 1 with a comprehensive and elaborate marking scheme attached.
13 Pages
9891 Views
0 Downloads
888.52 KB
GRADE 8 BUSINESS EDUCATION EXAMS SET 1
Trending!
Download a copy of GRADE 8 BUSINESS EDUCATION EXAMS SET 1 with a comprehensive and elaborate marking scheme attached.
6 Pages
9295 Views
0 Downloads
685.18 KB
GRADE 8 AGRICULTURE EXAMS SET 1
Trending!
Download a copy of GRADE 8 AGRICULTURE EXAMS SET 1 with a comprehensive and elaborate marking scheme attached.
7 Pages
12358 Views
1 Downloads
294.67 KB
GRADE 8 ASSESSMENT REPORT BOOK
Trending!
Download a copy of GRADE 8 ASSESSMENT REPORT BOOK
20 Pages
9884 Views
2 Downloads
1.05 MB
GRADE 7 ASSESSMENT REPORT BOOK
Trending!
Download a copy of GRADE 7 ASSESSMENT REPORT BOOK
31 Pages
10966 Views
3 Downloads
1.24 MB
A Comprehensive Guide to Grade 7 Novella Strange Happenings
Trending!
This Guide, written by a distinguished literary critic and author, Mr Enoch Osugo, is one of the latest literary curriculum support materials for the junior secondary learners. The educator has demonstrated his expertise by understanding and providing a solution to the challenges facing both the junior school facilitator and the learner in navigating the dynamics of literary analysis.
55 Pages
12625 Views
13 Downloads
929.41 KB