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 | 1972 |
| 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.
INTRODUCTION TO SOLAR TECHNOLOGIES
Trending!
Solar electricity is electric power generated from sunlight using devices called solar cell
modules. Solar electricity can replace, cost-effectively, small applications of petroleum-fueled generators, grid power and even dry cell batteries.
58 Pages
3187 Views
0 Downloads
1.34 MB
Medical-Legal Ethics
Trending!
A summary of the application of medical-legal ethics for nurses, doctors and other direct care medical professionals.
53 Pages
3995 Views
2 Downloads
337.68 KB
POTT/D/234 PERIOPERATIVE THEATRE TECHNOLOGY
Trending!
An outline of all perioperative procedures and conduct in the theatre.
153 Pages
4139 Views
0 Downloads
839.52 KB
INTRODUCTION TO CONTROL
Trending!
Definition and importance of control
Definition Food and beverage control may be defined as the guidance and regulation of the costs
and revenue of operating the catering activity in a food and beverage establishment.
Sectors of food and beverage outlets
Bars
Night clubs
Pubs
Fine dining restaurants
Dining rooms
Sandwich bars
Deli shops and employees cafeterias
Coffee house and tea rooms
Snacks and refreshment centers
Lounge
Take away and home deliveries
It is important at this stage to clarify the limitations of a control system.
A control system can only identify problem areas and trends in the business. The system cannot
automatically correct such problem areas.
A control system will require constant management supervision to ensure that it functions efficiently.
A control system will need management action to evaluate the information produced and to act upon
98 Pages
2946 Views
0 Downloads
2.18 MB
CBC GRADE 6 ASSESSMENT BOOK
Trending!
Assessment book for CBC Grade 6
49 Pages
3142 Views
1 Downloads
514.42 KB
SBT 100 & SBT 114 CELLULAR BASIS OF LIFE
Summary of concepts in cellular basis of life
45 Pages
1801 Views
3 Downloads
2.12 MB
WORKSHOP ORGANIZATION MANAGEMENT
Trending!
MANAGEMENT is the process of getting things done through the efforts of other people in order to achieve the predetermined objectives of organization.
59 Pages
3059 Views
0 Downloads
695.31 KB
MICRO-ELECTRONICS
Trending!
A computer is defined as a machine that is capable of taking in raw data (input) and processing it into more meaningful output (information) under definite instructions (programs) and stores the results for future use.
88 Pages
2948 Views
0 Downloads
3.32 MB
ENTO 121 FUNDAMENTALS OF ENTOMOLOGY
Trending!
Comprehensive notes on fundamentals of entomology.
183 Pages
3265 Views
0 Downloads
1.84 MB
BUILDING SERVICES & PROTECTION NOTES
Trending!
A building is a structure that has a roof and walls and stands permanently in one place. The primary function of buildings is to provide shelter to its occupants.
56 Pages
3526 Views
0 Downloads
3.72 MB