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 | 2123 |
| 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 PROTECTION ACT NO. 46 OF 2012
Trending!
Consumer Protection Act No. 46 of 2012
2154 Views
0 Downloads
895.45 KB
BASIC CONCEPTS IN INSURANCE LAW
This is a full summary of all concepts under Insurance Law.
33 Pages
1969 Views
0 Downloads
567.67 KB
LISTENING AND SPEAKING.
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
576 Views
0 Downloads
1.81 MB
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
194 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
2672 Views
2 Downloads
573.22 KB
LISTENING AND SPEAKING.
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
720 Views
0 Downloads
1.81 MB
EMA 412 :EDUCATIONAL PLANNING AND ECONOMICS OF EDUCATION.
Trending!
This is a discipline that has developed as a result of very practical reasons in sense that:
1. They are essential means of a nation to achieve its educational goals and therefore
objectives that are dependent on series of activities planned for future.
2. As envisaged in changes that shape human societies to be individuals that can promote
development, education planning forms part of other societal planning. An example of a
development plan in Kenya is the Vision 2030 which includes plans such as; making
Kenya an industrialized country by the year 2020, documentation every five years on
fight against HIV and AIDS, environmental education and awareness.
3. Better utilization of limited resources by appropriate distribution and utilization.
4. Knowledge on economics plays an important role by having fundamentals of economics on scarcity of resources.
5. Planning is essential in solving emerging challenges in education. These include financial constraints, social and cultural interference, equity and efficiency.
6. Planner will endeavor to mitigate these by reducing wastage caused by drop outs and repeaters.
36 Pages
3034 Views
0 Downloads
481.26 KB
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
618 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
3347 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
2090 Views
1 Downloads
650.95 KB