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 | 2024 |
| 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.
DEMOGRAPHIC MEASUREMENT TOOLS AND TECHNIQUES
Trending!
The major demographic processes of fertility mortality and migration constitute of the basic components to determine the size composition and distribution of a population which require basic tools and techniques of measurements
22 Pages
2866 Views
0 Downloads
134.16 KB
DATABASE
Database is a common data pool maintained to support the various activities taking part in an organisation
No pages found
550 Views
0 Downloads
629.11 KB
SPREADSHEETS
Spreadsheets is a ledger sheet that lets the user enter edit and manipulate numerical data
No pages found
212 Views
0 Downloads
441.76 KB
DATA SECURITY AND CONTROL
Data and information must be protected against unathorized access, modification or acces
No pages found
275 Views
0 Downloads
1.47 MB
DCM MODULE 3 : PROJECT AND CONTACT MANAGEMENT
Trending!
A project is a complex of activities where resources are used in expectation of returns. It intends to achieve specific objectives. It has a sequence of investments and production activities and a specific group of benefits that can be identified and valued either socially or monetarily.
51 Pages
3147 Views
0 Downloads
1.14 MB
COMPUTER HARDWARE NOTES
Trending!
A computer is an electronic device that accepts data as input,and transform it under the influence of a set of special instructions called programs,to produce the desired output referred to as Information.
121 Pages
3323 Views
0 Downloads
13.95 MB