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 | 1615 |
| 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.
COUNSELLING PSYCHOLOGY KNEC NOTES
Trending!
Guide to diploma in social work module 3 for preparation for KNEC exams. It is a great manual for students studies, with precise notes that can well be understood.
69 Pages
3810 Views
4 Downloads
10.34 MB
INFORMATION COMMUNICATION TECHNOLOGY KNEC NOTES
Trending!
ICT (information and communications technology - or technologies) is a term that includes any communication device or application, encompassing: radio, television, cellular phones, computer and network hardware and software, satellite systems and so on, as well as the various services and applications associated with them, such as videoconferencing and distance learning.
149 Pages
3623 Views
2 Downloads
20.65 MB
CONSTRUCTION PLANT AND EQUIPMENT KNEC NOTES
Trending!
Plant refers to machinery, equipment or apparatus used for an industrial activity. In construction, plant typically refers to heavy machinery and large equipment used on construction sites – think cranes, excavators and bulldozers.
69 Pages
3687 Views
3 Downloads
3.01 MB
CONCRETE TECHNOLOGY KNEC NOTES
Trending!
Concrete is made by portland cement, water and aggregates. Portland cement is a hydraulic cement that hardens in water to form a water-resistant compound. The hydration products act as binder to hold the aggregates together to form concrete. The name portland cement comes from the fact that the colour and quality of the resulting concrete are similar to Portland stone, a kind of limestone found in England.
73 Pages
3307 Views
1 Downloads
2.42 MB
CONSTRUCTION MATERIALS KNEC NOTES
Trending!
Building material is material used for construction. Many naturally occurring substances, such as clay, rocks, sand, wood, and even twigs and leaves, have been used to construct buildings and other structures, like bridges.
69 Pages
3477 Views
2 Downloads
1.54 MB
TECHNICAL DRAWING KNEC NOTES
Trending!
Engineering depends mainly upon Engineering drawing, hence need for Engineers to acquire a good working knowledge about the subject in order to express and record the shape, size and other information necessary for the construction of various objects such as buildings, roads, bridges, machines etc.
96 Pages
3442 Views
1 Downloads
3.67 MB
WORKSHOP TECHNOLOGY MODULE 2 KNEC NOTES
Trending!
This module is to equip the trainee with the necessary knowledge, skills and attitude required to fully understand workshop tools, techniques and technology.
101 Pages
3874 Views
1 Downloads
4.15 MB
WORKSHOP TECHNOLOGY MODULE 1 KNEC NOTES
Trending!
This module 1 is to equip the trainee with the necessary knowledge, skills and attitude required to fully understand workshop tools, techniques and technology.
45 Pages
4703 Views
6 Downloads
1.3 MB
SURVEYING KNEC NOTES
Trending!
Surveying is defined as taking a general view of, by observation and
measurement determining the boundaries, size, position, quantity, condition,
value etc. of land, estates, building, farms mines etc. and finally presenting the
survey data in a suitable form. This covers the work of the valuation surveyor,
the quantity surveyor, the building surveyor, the mining surveyor and so forth, as
well as the land surveyor.
87 Pages
3217 Views
3 Downloads
1.88 MB