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 | 5040 |
| 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.
CBA 101: Business Law 1
Trending!
This unit aims at introducing you to the general principles of law and its application. in particular the unit discusses how this law relates to the business world.
129 Pages
7394 Views
1 Downloads
1.37 MB
ARE 400: Contemporary Trends in Christian Theology
Trending!
What is theology? Theology is the science of God. In its Christian sense it is the
science of the divinely revealed religious truths. Its theme is the being and nature of
God and God’s creatures and the whole complex of the divine dispensation from the
fall of Adam to the redemption through Christ and its mediation of people by His
church including the so-called natural truths of God, the soul, the moral law, which
are accessible to mere reason.
70 Pages
6314 Views
2 Downloads
634.44 KB
Ratio Analysis Notes For Financial Accounting
Trending!
Ratio analysis is among the most popular and widely used tools of financial analysis. A ratio expresses a mathematical relation between two quantities. While computation of a ratio is easy, its interpretation is more complex.
8672 Views
0 Downloads
35.48 KB
HControl Systems
Trending!
Updated notes on HControl Systems
494 Pages
7360 Views
0 Downloads
15.58 MB
EAB 2221: Building services and Maintenance1
Trending!
UPDATED NOTES ON BUILDING SERVICES AND MAINTENANCE
7550 Views
1 Downloads
7.67 MB
Desktop Publishing Intro
Trending!
UPDATED NOTES ON DESKTOP PUBLISHING
12 Pages
7354 Views
0 Downloads
209.68 KB
HIV TRANSMISSION RISK
Trending!
UPDATED NOTES ON HIV TRANSMISSION
RISK
43 Pages
6735 Views
0 Downloads
1.12 MB
POETRY NOTES
This course contains simplified notes on poetry from form1-4
72 Pages
450 Views
1 Downloads
214.6 KB
SKELETAL SYSTEM
Trending!
This course contains the components of the skeleton system and their functions
51 Pages
2140 Views
0 Downloads
1.02 MB