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 | 5266 |
| 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.
LLBK 319: CONSUMER PRODUCTS LIABILITY
Trending!
The notes provide complete details on product liability law.
5 Pages
6329 Views
0 Downloads
353.65 KB
LLBK 319: LSK CONDITION OF SALE
Trending!
The notes are key in understanding the smallest bits when drafting sale/purchase agreements, especially in conveyancing.
15 Pages
6506 Views
0 Downloads
166.18 KB
LLBK 319: CONSUMER PROTECTION ACT NO. 46 OF 2012
Trending!
Consumer Protection Act No. 46 of 2012
5505 Views
0 Downloads
895.45 KB
BASIC CONCEPTS IN INSURANCE LAW
Trending!
This is a full summary of all concepts under Insurance Law.
33 Pages
5363 Views
0 Downloads
567.67 KB
COMPUTER SYSTEMS
Computer system has three components namely: Hardware, software and liveware (computer user).
A system is a collection of different entities that collectively work together to achieve a desired goal.
Examples of systems are human body, social system, school system etc.
A computer system is a collection of three components namely hardware, software and liveware
entities that work together to receive, process, manage and present information in a meaningful
format using computers
14 Pages
274 Views
0 Downloads
707.89 KB
EEN 110: CONCEPTS IN ENVIRONMENTAL EDUCATION AND SUSTAINABLE DEVELOPMENT
Trending!
The term environment comes from a French word ‘environmer’ meaning the surrounding. It is
perceived as that part of the world with which humans interact, a sum of the total natural and
socio components which are or may be in direct interaction with humans. The environment is
also seen as a social construct made up of four dimensions; the biophysical, social, economic
and political dimensions. The environment with its dimensions form a system whose dimensions
interact affect and is affected by other dimensions. When any of the dimensions is affected
negatively or positively the entire environment is affected. Environment is a system made up of
components that interact with each other, the environment is complex system affecting the
development of humanity, and it provides resources for economic growth and for ecological and
social wellbeing.
90 Pages
7565 Views
2 Downloads
573.22 KB
LISTENING AND SPEAKING.
Trending!
In English, we have various vowel sounds. We shall study them one after the other.
Sound
Consider the letter a n the words below. Each says this sound
144 Pages
2148 Views
0 Downloads
1.81 MB
LISTENING AND SPEAKING FOR FORM FOUR
Oral poetry refers to the verbal expression of feelings, ideas and thoughts using words
arranged in their best possible order.
If sung ,it is a song
108 Pages
1031 Views
0 Downloads
1.12 MB
BIOL 244: ENVIRONMENT AND NATURAL RESOURCE MANAGEMENT
Trending!
Environment-surrounding
The surrounding conditions which
influence behaviour and development of
living things.
Environmental science therefore is the
study of the environment, its living and
non-living components and their
interactions.
273 Pages
8450 Views
0 Downloads
14.7 MB
FOND 314: FOOD SERVICE SYSTEMS
Trending!
Management is a technique of leadership or a means of coordination or cooperation. It is
systemized knowledge based on general principles which are verifiable in business practice. The
management; plans, organizes, motivates directs and controls six ‘m’ – men, money, materials,
machinery, market and minutes (time).
20 Pages
5537 Views
1 Downloads
650.95 KB