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 | 2069 |
| 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.
SPA 2412; Financial Risk Management Notes 4th Year
Trending!
Financial risk management is a process to deal with key factors affecting interest rates,exchange rates and commodity prices.
99 Pages
3117 Views
2 Downloads
1.31 MB
SPA 2403; Survival Analysis Notes 4th year
These are simplified survival analysis notes to help the student to pass his or her exams.
67 Pages
1990 Views
1 Downloads
184.36 KB
Curriculum development notes 2nd year
Trending!
Simple and clear notes
51 Pages
2380 Views
2 Downloads
565.08 KB
SPA 2410; Life Assurance Notes 4th year
These are simplified Life Assurance notes to help the student to study and pass exams easily
177 Pages
1634 Views
0 Downloads
712.34 KB
4th year
This notes provide comprehensive knowledge of data mining basic knowledge of machine learning.
125 Views
0 Downloads
333.5 KB
A letter to my former teacher, novel
Trending!
Teachers' impact on the performance of students.
60 Pages
3542 Views
0 Downloads
410.7 KB