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 | 4891 |
| 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.
Principles of Risk Management & Insurance
Updated notes on Principles of Risk Management & Insurance
138 Pages
576 Views
1 Downloads
2.52 MB
ARE 351: OLD TESTAMENT HERMENEUTICS
Trending!
This course which consists of six major study units which examines hermeneutics as a
tool for the study of the Old Testament including the science of hermeneutics, concepts and elements of hermeneutics, features and problems associated with the study of the Old Testament using various hermeneutical approaches
29 Pages
10192 Views
0 Downloads
1.06 MB
TIPS TO EXCELLING IN BIOLOGY
Trending!
The booklet highlights the Main reasons why Students Perform Poorly in the Biology Subject and tips to excel in the subject.
4 Pages
8863 Views
0 Downloads
144.53 KB
BIOLOGY ESSAY QUESTIONS EXPECTED ANSWERS
Trending!
The booklet explores a wide range of possible biology essays and the expected responses. it also helps students sharpen their skills in handling essay questions.
31 Pages
10921 Views
3 Downloads
379.39 KB
HISTORY UPDATED NOTES FORM 1-4 BOOKLET
Trending!
History is an account of events that took place in the past. History may also be defined as a branch of knowledge which deals with past events of human beings and their response to their environment over the years.
10607 Views
6 Downloads
733.65 KB
HISTORY FORM 2 SIMPLIFIED NOTES
Trending!
Download a copy of the simplified comprehensive notes on History Form 2 Syllabus.
11643 Views
4 Downloads
108.92 KB
HISTORY FORM 1 SIMPLIFIED NOTES
Trending!
Download a copy of the simplified notes for the Form one History syllabus.
9684 Views
1 Downloads
68.07 KB
HISTORY FORM 3 SIMPLIFIED NOTES
Trending!
Hallo. Welcome to History and Government for form 3. We are going to learn about European invasion of Africa and the process of colonisation, establishment of colonial rule in Kenya, colonial administration, social and economic developments in Kenya during the colonial period, political developments and the struggle for independence.
13880 Views
10 Downloads
43.28 KB
HISTORY FORM 4 SIMPLIFIED NOTES
Trending!
World War I or the First World War was a war fought by many countries, which is why it is called a "world" war. It started in 1914 and ended in 1918. 135 countries took part in World War I, and more than 15,000,000 people died in the war.
10396 Views
7 Downloads
798.42 KB