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 | 2041 |
| 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.
MEDICAL SURGICAL NURSING NOTES
Trending!
Medical /surgical nursing- broad nursing specialty that provides care for adult patients with either /both acute and chronic conditions.
158 Pages
3700 Views
0 Downloads
5.82 MB
KCSE MATHEMATICS PAPER 1&2 JOINT MOCK BOOKLET
Trending!
This is a combination of Mathematics Paper 1 and 2 revision booklet with marking schemes well prepared to guide the student on how to approach Maths questions and understand the concepts.RECOMMENDED for the students with bright future.
352 Pages
5091 Views
1 Downloads
22.92 MB
ENTREPRENEURSHIP AND COMMUNICATION ATD/DCM/DCIT NOTES LEVEL 1
Trending!
The purpose of this module is to equip the candidate with knowledge and skills to apply entrepreneurship and communication in other business environments.
51 Pages
3507 Views
0 Downloads
436.31 KB
ELEMENTARY FOUR FIGURE TABLE 6TH EDITION
Trending!
Mathematical tables, especially four-figure tables, play a crucial role in aiding students’ understanding of mathematical concepts. Let’s explore their significance.
43 Pages
3322 Views
7 Downloads
11.59 MB
HISTORY SIMPLIFIED NOTES FORM 1
Trending!
History is the study of Man’s past chronological account and record of events in relation to his environment. Or: It is a social science concerned with past human actions, pursued by interpretation of evidence for the sake of human self-knowledge.
355 Pages
4147 Views
0 Downloads
2.34 MB
HUuman resource letters templates
this is a human resource letters template comprising of different types of letters to ease the HR job time.
10 Pages
222 Views
1 Downloads
836.16 KB
BEC 213;SCIENCE AND MATHEMATICS
Trending!
This course will help the learner conceptualize science and mathematics for Early Childhood education. Acquaint the learner with knowledge, skills, and attitudes for developing, implementing and evaluating science and mathematics in early childhood education
94 Pages
3925 Views
6 Downloads
411.46 KB
ECD 111;PHILOSOPHICAL AND SOCIOLOGICAL FOUNDATION OF EARLY CHLDHOOD NOTES
This course will help the learner conceptualize the philosophy and historical foundations of early
childhood education. It will give the learner the required knowledge, skills and attitudes towards the philosophy behind early education and its development
92 Pages
1771 Views
1 Downloads
577.71 KB
KCSE CHEMISTRY PAPER 1 YEAR 2021
Trending!
Chemistry paper 1 past papers plus marking scheme play a crucial role in students’ preparation for the Kenya Certificate of Secondary Education (KCSE) examination.
No pages found
4792 Views
1 Downloads
5.81 MB
KCSE CHEMISTRY PAPER 2 YEAR 2021
Trending!
Chemistry paper 2 past papers plus marking scheme play a crucial role in students’ preparation for the Kenya Certificate of Secondary Education (KCSE) examination. Let’s explore their significance:
No pages found
4081 Views
1 Downloads
5.72 MB