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 | 2053 |
| 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.
Organization theory and Behaviour Questions and Answer
Simplified Questions and Answers
7 Pages
235 Views
0 Downloads
166.71 KB
SITE PREPARATION
Trending!
Site Analysis † prior to purchasing a building site it is essential to
conduct a thorough survey to ascertain whether the site characteristics suit the development concept
86 Pages
2262 Views
0 Downloads
6.4 MB
ABC 2205: WORKSHOP TECHNOLOGY
Trending!
Masonry works: Manufacture of concrete blocks, bricks, stone dressing. Return
angles; jointing and bedding of construction materials. Setting out. Partitioning. Cut
stone, dressing and laying. Precautions. Creating opening in masonry walls. Fixtures and fittings to masonry walls. Tools and quality of workmanship. Workshop practice. Appropriate technology manufacture of compressed stabilized earth blocks, sisal cement, roofing sheets and tiles, water storage tanks and new products.
50 Pages
2357 Views
0 Downloads
2.19 MB
SOCIAL POLICY
This course introduces learners to key concepts, theories and frameworks for analyzing social policy. The ideological, theoretical and values basis of social policy are examined with a view to understanding how they shape social policy locally, regionally and globally. Selected case studies of social policy interventions in Kenya are also examined.
42 Pages
265 Views
0 Downloads
1.12 MB
COUPLES AND FAMILY COUNSELLING
People live in relationship. Their problems arise partially from the relationships in which they live - the words and actions that bind or divide them in relation to others. However, the also carry within them their internalizations of other people: their self-esteem and self-concept are influenced by how others acted towards them. Clients (individual & group) enter the counselling room under the influence of their present companions and the historical companions who were their family of origin.
70 Pages
1887 Views
0 Downloads
1.3 MB
PSY 100: MORAL DECADENCE AMONG THE YOUTHS
Trending!
If there is any topical issue that is rampant and dominates our everyday intellectual excursion and discussion or creating waves daily in the media, it is the problem of moral decadence among the youths. In fact, the problem, which initially was gradual in bites has now, attained the level that can best be described as the incurable cancer disease, the tentacles of which have spread into the nooks and crannies of the country.
50 Pages
2120 Views
0 Downloads
1.09 MB