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 | 5250 |
| 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.
LEADERSHIP NOTES
Trending!
Leadership is similar to management in various ways as both involve influencing and working with people and are concerned with effective goal accomplishment.
However, leadership is also different from management. The primary function of management in an organization is to provide order and consistency whereas leadership is to produce change and growth.
68 Pages
7668 Views
1 Downloads
1.14 MB
INTRODUCTION TO PHILOSOPHY
This sub- topic is intended to equip the learner with knowledge, skills and positive attitudes towards the understanding and appreciating the role of philosophy in human life and endeavors. It covers the definition, meaning, branches and uses of philosophy in the cultivation of better thinking and meaningful living.
8 Pages
1917 Views
0 Downloads
888.5 KB
APP 201: POLITICAL THEORY
This is a second year, first semester course that focuses on political theories that political science is grounded. The module aims at exposing you to different concepts, theories and ideologies. It will help you understand the difference between political theory and political science, evaluate the theories used in political inquiry, comprehend the concepts state, power and authority and differentiate the different political ideologies.
36 Pages
292 Views
0 Downloads
1012.65 KB
APP 201: POLITICAL THEORY
This is a second year, first semester course that focuses on political theories that political science is grounded. The module aims at exposing you to different concepts, theories and ideologies. It will help you understand the difference between political theory and political science, evaluate the theories used in political inquiry, comprehend the concepts state, power and authority and differentiate the different political ideologies.
36 Pages
386 Views
0 Downloads
1012.65 KB
CILS 2101: COMMUNICATION AND INFORMATION LITERACY SKILLS
Communication refers to the conveying of ideas from the mind of one person to the
mind of another which takes place between two or more people, (Harding, 1985 ).
Simply put, it implies that when a person has some idea, they can easily transfer
this idea as it is, to another person’s mind or other people’s minds with no difficulty.
159 Pages
1519 Views
0 Downloads
2.24 MB
ECO 213: INTERMEDIATE MICROECONOMICS
Trending!
The purpose of intermediate microeconomic theory is to provide an adequate exposition of the basic concepts and techniques of microeconomic analysis. The consumer and producer theory and the theory of markets will be treated mathematically and diagrammatically. Further, pure aspects of general equilibrium theory and welfare economics will be covered.
59 Pages
7437 Views
0 Downloads
1.78 MB
GEO 222: SPATIAL ORGANIZATION
Trending!
Spatial organization refers to the arrangement of physical and human objects on the Earth's surface. In this course, we look at how the environment is arranged, how the environment affects man, how man adapts to the environment, how culture is developed and finally how man can conserve the environment.
38 Pages
6371 Views
0 Downloads
777.93 KB
LECTURE 5: MARKET STRUCTURES
Trending!
Market structure refers to the nature and degree of competition in the market for goods and services. The structures of market both for goods market and service (factor) market are determined by the nature of competition prevailing in a particular market.
13 Pages
5315 Views
1 Downloads
191.87 KB
GEO 221: PHYSICAL GEOGRAPHY
Trending!
The rocks that make up Earth’s mantle are mostly silicates a wide variety of compounds that share a silicon and oxygen structure. Common silicates found in the mantle include olivine, garnet, and pyroxene. The other major type of rock found in the mantle is magnesium oxide. Other mantle elements include iron, aluminum, calcium, sodium, and potassium.
49 Pages
4791 Views
0 Downloads
1.3 MB
THEORY OF DEMAND NOTES
Trending!
The purpose of the theory of demand is to determine the various factors that affect
demand of a commodity. That is, the establishment of the law of demand that states that the market demand is negatively related to the price.
53 Pages
5741 Views
0 Downloads
663.65 KB