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 | 4901 |
| 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.
COMMERCIAL AND ADMINISTRATIVE LAW UPDATED KNEC NOTES
Trending!
This module unit is intended to equip trainees with knowledge, skills and attitudes that will enable him apply commercial and administrative law in an organization.
147 Pages
11455 Views
9 Downloads
1.8 MB
FORM 3 ENGLISH PP1,PP2 & PP3 END YEAR EXAMS
Get a copy of the FORM 3 ENGLISH PP1,PP2 & PP3 END YEAR EXAMS (SET 2) editable exam papers with comprehensive marking schemes attached. This is a well set and coordinated paper suitable for assessing your students.
25 Pages
1247 Views
1 Downloads
884.57 KB
MARANDA HIGH POST-MOCK 2024; Biology PP1,PP2 & PP3 Q&A
Trending!
Download a copy of the MARANDA HIGH POST-MOCK 2024; Biology PP1,PP2 & PP3 Question Papers with well coordinated Marking Schemes attached. This is a good revision material for your upcoming exams.
64 Pages
8124 Views
3 Downloads
19.78 MB
GRADE 5 AGRICULTURE AND NUTRITION EXAM PAPER SET 1
Trending!
Download a copy of the GRADE 5 AGRICULTURE AND NUTRITION EXAM PAPER SET 1 and a marking scheme attached. This is helpful in revision and learner assessment.
6 Pages
8019 Views
5 Downloads
158.27 KB
SOCIAL STUDIES GRADE 5 TERM 3, SET 1
Trending!
Download a copy of the SOCIAL STUDIES GRADE 5 TERM 3 EXAM PAPER and a marking scheme attached. This is helpful in revision and learner assessment.
4 Pages
7840 Views
2 Downloads
139.08 KB
MARANDA HIGH JULY MOCK 2024; Chemistry PP1,PP2 & PP3 Q&A
Trending!
Download a copy of the MARANDA HIGH JULY MOCK 2024; Chemistry PP1,PP2 & PP3 Question Papers with well coordinated Marking Schemes attached. This is a good revision material for your upcoming exams.
69 Pages
2388 Views
3 Downloads
5.3 MB
CS;Human Resource Management Notes
Trending!
Human resource management (HRM) is the practice of recruiting, hiring, deploying
and managing an organization's employees.
- Human Resource Management is the process of recruiting, selecting, inducting
employees, providing orientation, imparting training and development, appraising the
performance of employees, deciding compensation and providing benefits, motivating
employees, maintaining proper relations with employees and their trade.
97 Pages
9557 Views
2 Downloads
1.27 MB
Business law revision Q&A
Trending!
The purpose of this business law revision Q and A is to help the student in preparing for the business law law exam
83 Pages
7854 Views
0 Downloads
1.15 MB
ALLIANCE BOYS JUL/AUG MOCK 2024; CRE PP1 & PP2 Q&A
Trending!
Download a copy of the ALLIANCE BOYS MOCK 2024; CRE PP1 & PP2 Q&A Question Papers with well coordinated Marking Schemes attached. This is good revision material for your upcoming exams.
14 Pages
8029 Views
1 Downloads
2.77 MB
ALLIANCE BOYS JUL/AUG MOCK 2024; Business Studies PP1 & PP2 Q&A
Trending!
Download a copy of the ALLIANCE BOYS MOCK 2024; Business Studies PP1 & PP2 Q&A Question Papers with well coordinated Marking Schemes attached. This is good revision material for your upcoming exams.
22 Pages
7788 Views
1 Downloads
4.23 MB