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 | 6278 |
| 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.
ENVIRONMENTAL ACTIVITIES SCHEMES OF WORK PP1 TERM1
Trending!
UPDATED ENVIRONMENTAL ACTIVITIES SCHEMES OF WORK PP1 TERM1
16 Pages
9114 Views
0 Downloads
343.09 KB
LANGUAGES ACTIVITIES SCHEMES OF WORK PP1 TERM1
Trending!
UPDATED LANGUAGES ACTIVITIES SCHEMES OF WORK PP1 TERM1
38 Pages
9949 Views
0 Downloads
505.51 KB
ENVIRONMENTAL ACTIVITIES SCHEMES OF WORK PP1 TERM2
Trending!
UPDATED ENVIRONMENTAL ACTIVITIES SCHEMES OF WORK PP1 TERM2
14 Pages
8937 Views
0 Downloads
422.24 KB
LANGUAGES ACTIVITIES SCHEMES OF WORK PP1 TERM2
Trending!
UPDATED LANGUAGES ACTIVITIES SCHEMES OF WORK PP1 TERM2
18 Pages
8892 Views
0 Downloads
426.44 KB
BBM 440 E: STRATEGIC FINANCIAL MANAGEMENT
Trending!
This course enables Students Understand and appreciate why and how strategic financial decisions are made in corporate org
46 Pages
9192 Views
0 Downloads
627.74 KB
Quantitative Techniques for Managers
Trending!
Updated Quantitative Techniques for Managers
14 Pages
8624 Views
0 Downloads
250.79 KB
BBA 100: BUSINESS STUDIES
Trending!
Updated business studies notes
89 Pages
8165 Views
0 Downloads
727.22 KB
BHR 211: FUNDAMENTALS OF HUMAN RESOURCES MANAGEMENT
Trending!
UPDATED FUNDAMENTALS OF HUMAN RESOURCES MANAGEMENT
9335 Views
2 Downloads
600.5 KB
CCS 104 : ELEMENTS OF ECONOMICS NOTES
Trending!
Accounting records are key sources of information and evidence used to prepare, verify and/or audit the financial statements. They also include documentation to prove asset ownership for creation of liabilities and proof of monetary and non monetary transactions. Examples of accounting records are Ledgers, Journals, Bank statements, Contracts and agreements, Verification statements, Transportation receipts, Invoices and Vouchers.
41 Pages
9580 Views
0 Downloads
422.56 KB