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 | 2011 |
| 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.
STA 2260: STATISTICS
Trending!
The Word statistics has been derived from Latin word “Status” or the Italian word “Statista”, the meaning of these words is “Political State” or a Government. Early applications of statistical thinking revolved around the needs of states to base policy on demographic and economic data.
90 Pages
3642 Views
0 Downloads
3.09 MB
AED 102: AGRICULTURAL EDUCATION COMMUNICATION SKILLS
Trending!
Authoritarian Theory; Under theory, freedom of thought is jealously guarded by a few people (ruling classes), who are concerned with the emergence of a new middle class. This class are worried about the effects of printed matter on their thought process and therefore, steps are taken to control the freedom of expression. This has resulted in advocacy of complete dictatorship.
8 Pages
3780 Views
0 Downloads
242.27 KB
HORT 317: VEGETABLE PRODUCTION AND MANAGEMENT
Trending!
Horticulture is the branch of agriculture which deals with garden crops i.e. fruits, vegetables and ornamental plants.The world horticulture is derived from the Latin word Hortus means garden and colere means to cultivate. There are main three branches of Horticulture Pomology, Olericulture, and Floriculture.
59 Pages
3037 Views
1 Downloads
1.24 MB
CONSUMER AND BUYER BEHAVIOUR
Trending!
In marketing, it is generally believed and conceptualized that customer is the ‘King.’
Practically, every business entity exists to offer goods and or services to the market either for profit or non-profit motive. In any case, such entity must identify and define the target market (those it wants to serve), understand the components, characteristics and unique nature of the market.
11 Pages
2820 Views
0 Downloads
74.93 KB
EMA 411: EDUCATIONAL MANAGEMENT & ADMINISTRATION NOTES
Trending!
Management: Management is a term most often used to describe industrial activities. Management is a social process which is designed to ensure the cooperation, participation, intervention and involvement of others in the effective achievement of a given or pre-determined goal or objective.
37 Pages
5525 Views
1 Downloads
1.31 MB
EDUCATION AND SOCIAL STARTIFICATION
Trending!
Social stratification is a particular form of social inequality. It refers to the presence of social groups which are ranked one above the other, usually in terms of the amount of power, prestige and wealth their members possess. Those who belong to a particular group or stratum will have some awareness of common interest and common identity.
22 Pages
3005 Views
0 Downloads
713.11 KB
THEATRE ARTS: A BRIEF
Trending!
The script is the starting point of the technical performance. It is the domain of the
playwright and is the text by which theatre is created. There are different types of scripts, simplistic as in the morality/church plays and also the complex ones.
10 Pages
2812 Views
0 Downloads
312.41 KB
EDF NOTES: SOCIOLOGY OF EDUCATION.
Trending!
Sociology Of Education is the scientific study of education structure, processes and practices from a sociological perspective in which the methods and theories of Sociology are used in education.
33 Pages
4336 Views
0 Downloads
859.4 KB
CLASSIFICATION IN ORAL LITERATURE
Trending!
Classification is a necessary undertaking in any intellectual inquiry. The setting up of welldefined classes within a field of study transforms what might have been an unwieldy mass of material into a system.
5 Pages
3414 Views
0 Downloads
304.82 KB
MANAGEMENT ACCOUNTING
Cost accounting is a type of accounting process that aims to capture a company's costs of production by assessing the input costs of each step of production as well as fixed costs such as depreciation of capital equipment.
306 Pages
498 Views
1 Downloads
1.96 MB