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 | 1980 |
| 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.
SCH 100: Fundamentals of Inorganic Chemistry
Trending!
Fundamental of Inorganic chemistry is a core unit in chemistry at the undergraduate level for
the Bachelor of Education as well as Bachelor of Science degrees. The unit aims at
introducing the learner to various basic concepts in chemistry. It endeavours to equip the
learner with sufficient knowledge to enable him/her to comprehend and relate to other
concepts encountered at a later stage, as he or she dwells more in chemistry and other related
sciences.
84 Pages
3877 Views
4 Downloads
1.47 MB
Biology Form 4 Notes
Trending!
Genetics is the study of how genes and how traits are passed down from one generation to the next. Our genes carry information that affects our health, our appearance, and even our personality!
54 Pages
3495 Views
1 Downloads
1.29 MB
DAF 1102: Fundamentals of Accounting 1
Trending!
The major aim of this course is to develop the learners understanding of the
principles of book-keeping and accounts and the ability to maintain books of accounts and
preparation of financial statements.
143 Pages
2430 Views
2 Downloads
1.73 MB
CBM 1202: Introduction to Principles of Management
The aim of these notes is to help learn managerial skills and levels of management
311 Views
0 Downloads
13.95 KB
CBM 1202: Introduction to Principles of Management
The aim of these notes is to help learn managerial skills and levels of management
155 Views
0 Downloads
13.95 KB
KCSE 2019 BIOLOGY PP1,PP2,PP3 QUESTIONS & ANSWERS
Trending!
Download a copy of KCSE 2019 BIOLOGY PP1,PP2,PP3 QUESTIONS with comprehensive KNEC Marking Schemes, This is instrumental in aiding your revision for your fourth coming examinations.
25 Pages
3850 Views
0 Downloads
2.18 MB
KCSE 2019 CHEMISTRY PP1,PP2,PP3 QUESTIONS & ANSWERS
Trending!
Download a copy of KCSE 2019 CHEMISTRY PP1,PP2,PP3 QUESTIONS with comprehensive KNEC Marking Schemes, This is instrumental in aiding your revision for your fourth coming examinations.
36 Pages
3541 Views
0 Downloads
1.35 MB
KCSE 2019 ENGLISH PP1,PP2,PP3 QUESTIONS & ANSWERS
Trending!
Download a copy of KCSE 2019 ENGLISH PP1,PP2,PP3 QUESTIONS & ANSWERS with comprehensive KNEC Marking Schemes, This is instrumental in aiding your revision for your fourth coming examinations.
27 Pages
3818 Views
0 Downloads
1.27 MB
KCSE 2019 KISWAHILI PP1,PP2,PP3 QUESTIONS & ANSWERS
Trending!
Download a copy of KCSE 2019 KISWAHILI PP1,PP2,PP3 QUESTIONS with comprehensive KNEC Marking Schemes, This is instrumental in aiding your revision for your fourth coming examinations.
31 Pages
3807 Views
1 Downloads
1.4 MB
KCSE 2019 MATHEMATICS PP1,PP2 QUESTIONS & ANSWERS
Trending!
Download a copy of KCSE 2019 MATHEMATICS PP1,PP2 QUESTIONS with comprehensive KNEC Marking Schemes, This is instrumental in aiding your revision for your fourth coming examinations.
42 Pages
4053 Views
5 Downloads
1.63 MB