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 | 2073 |
| 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.
Family law notes
Trending!
Family law may refer to law that govern a man and a woman who share common household.
91 Pages
4193 Views
1 Downloads
411.04 KB
Family law 2 notes
Trending!
Family refer to a man and a woman sharing common household
15 Pages
4217 Views
0 Downloads
166.79 KB
company law notes
Company law refers to the laws that govern the formation and winding up of a company under certain company's act.
117 Pages
413 Views
0 Downloads
731.85 KB
DRIVING HANDBOOK NOTES
Trending!
The purpose of this driving handbook is to guide drivers and any other person planning to join driving school to familiarise themselves with road traffic rules ,safety and regulations.
84 Pages
3238 Views
0 Downloads
2.25 MB
Arts grade 5 notes
Trending!
The purpose of this art's notes is to equip the pupil with knowledge to know different drawing techniques
30 Pages
3466 Views
1 Downloads
1.53 MB
Science grade 5 notes
Trending!
The purpose of this simplified science notes is to help the pupil to read and understand what is being taught in class
43 Pages
4561 Views
3 Downloads
1005.8 KB
BBM 125: PRINCIPLES OF ACCOUNTING II
The purpose of this unit is to develop the learners deeper understanding of the principles of book-keeping and accounts and the ability to maintain books of accounts and preparation of financial statements.
256 Pages
1595 Views
1 Downloads
1.13 MB
BBM 114: FUNDAMENTAL OF ACCOUNTING 1
Purpose of this course is to develop the learners understanding of the principles of book-keeping and accounts and the ability to maintain books of accounts and preparation of financial statements.
286 Pages
1967 Views
0 Downloads
1.21 MB
BIT 2103: ELECTRONIC COMMERCE
Trending!
Purpose of the course: To introduce the learner to the concepts and terminologies of e- commerce and to provide the learner with sufficient knowledge and skills for effective participation in e- business.
82 Pages
2774 Views
0 Downloads
1.62 MB
MS Excel notes
Trending!
Microsoft excel is an electronic spreadsheet used to organize data into rows and columns
17 Pages
4311 Views
1 Downloads
794.24 KB