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 | 4958 |
| 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.
HE/CU/TT/CC/02/6/A: BASIC HOSPITAL PROCEDURES
Trending!
BASIC HOSPITAL PROCEDURE REVISION PAPER/PAST PAPER
3 Pages
2920 Views
11 Downloads
108.75 KB
HE/CU/TT/CC/03/6/A: COMMON DISEASES PAST PAPERS
Trending!
COMMON DISEASES PAST PAPERS/REVISION PAPERS
7 Pages
10771 Views
19 Downloads
142.26 KB
HE/CU/TT/CC/01/6/A: HUMAN ANATOMY AND PHYSIOLOGY PAST PAPER
Trending!
HUMAN ANATOMY AND PHYSIOLOGY REVISION PAPER/PAST PAPER
7 Pages
11176 Views
9 Downloads
124.62 KB
HE/CU/TT/CR/06/6/A: MANAGEMENT OF PERIOPERATIVE THEATRE RESOURCES PAST PAPER
Recommended!
Trending!
MANAGEMENT OF PERIOPERATIVE THEATRE RESOURCES REVISION PAPERS/PAST PAPERS
3 Pages
10531 Views
23 Downloads
120.5 KB
HE/CU/TT/CC/05/6/A: APPLICATION OF MEDICAL–LEGAL ETHICS PAST PAPERS
Trending!
APPLICATION OF MEDICAL LEGAL ETHICS PAST PAPERS/REVISION PAPERS
7 Pages
8810 Views
12 Downloads
128.32 KB
HE/CU/TT/CR/04/6/A: PROVISION OF PERIOPARATIVE THEATRE TECHNICAL SERVICES PAST PAPER
Trending!
PROVISION OF PERIOPERATIVE THEATRE TECHNICAL SERVICES REVISION QUESTIONS/PAST PAPER
8 Pages
11582 Views
15 Downloads
148.61 KB
MASENO SCHOOL JUL/AUG MOCK 2024; Kiswahili PP1,PP2,PP3 Q&A
Trending!
Download a copy of the MASENO SCHOOL JUL/AUG MOCK 2024; Kiswahili PP1,PP2, PP3 Q&A Question Papers with well coordinated Marking Schemes attached. This is good revision material for your upcoming exams.
62 Pages
9278 Views
4 Downloads
5.08 MB
MASENO SCHOOL JUL/AUG MOCK 2024; Biology PP1,PP2, PP3 Q&A
Trending!
Download a copy of the MASENO SCHOOL JUL/AUG MOCK 2024; Biology PP1,PP2, PP3 Q&A Question Papers with well coordinated Marking Schemes attached. This is good revision material for your upcoming exams.
61 Pages
8688 Views
4 Downloads
12.48 MB
ENGINEERING DRAWING 1
Trending!
The goal is for students to communicate engineering designs accurately through pictures since drawings are more effective than words alone. Precision and standardization are important for manufacturing.
275 Pages
5497 Views
0 Downloads
5.66 MB
FORM ONE ENGLISH SCHEMES OF WORK
Trending!
Enhance your Term 3 Secondary English teaching with our UPDATED Form 1 English Schemes of Work.
24 Pages
7801 Views
0 Downloads
636.29 KB