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 | 1992 |
| 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.
AKS 202: LANGUAGE SKILLS IN KISWAHILI
Trending!
Kitabu hiki kimekusudiwa wasomi wa aina tofauti wawe wanafunzi, waalimu, watafiti, waharirir, waandishi au wanaelimu kwa jumla. Lengo kuu la kitabu hiki ni kumwezesha msomaji kuwa na msingi dhabiti na uwezo wa kuitumia lugha ya Kiswahili kimaanidhi kwa usahihi na ufasaha.
272 Pages
4353 Views
5 Downloads
1.21 MB
AKS 301: KISWAHILI STRUCTURE
Trending!
Katika somo hili nitachunguza fonolojia ya kiswahili,nitajishughulisha na sifa za sauti za kiswahili na jinsi zinavytamkwa. aidha nitachunguza dhana zinazotumika katika somo la fonolojia na mifanyiko mbali mbali za kifonolojia.
94 Pages
2107 Views
3 Downloads
4.5 MB
AKS 201: INTRODUCTION TO THE STUDY OF LITERATURE
Trending!
Mtalaa huu unalenga kuwapa wanafunzi na wasomi wengine nafasi ya kuielewa
fika taaluma ya fasihi. Mambo ya kimsingi yanayohusiana na somo la fasihi
yamezingatiwa katika mtalaa. Nyanja za fasihi zikiwemo fasihi simulizi, riwaya,
hadithi fupi, tamthilia na ushairi zimejadiliwa. Hayo ni pamoja na maswali ya
kufanyia mazoezi, vitabu na makala mbalimbali za kurejelea katika kila utanzu
ulioshughulikiwa.
118 Pages
3350 Views
0 Downloads
958.49 KB
SPH 202: MODERN PHYSICS
Trending!
Modern physics, as the name suggests, is about new ways of interpreting the causes of various properties of matter and aspects of the behaviour of matter when it interacts with things in the environment.
86 Pages
3289 Views
0 Downloads
1.46 MB
AGD 405: GENDER, HUMAN RIGHTS AND DEVELOPMENT.
This module seeks to introduce learners to the central themes in gender and human rights. Classification of human rights Gender and human rights in Africa and its implications. It Introduces students to International, Regional and national human rights instruments: for example the Universal declaration of human rights 1948, Maputo protocol and the Kenyan constitution.
75 Pages
1688 Views
1 Downloads
4.01 MB
AGD 405: GENDER, HUMAN RIGHTS AND DEVELOPMENT
Welcome to this module. The purpose of the course is to discuss the concepts gender, human rights and development. We hope that you will find this module exciting, educative, and engaging.
74 Pages
195 Views
0 Downloads
6.92 MB
AGD 313: Gender & Social Change
The aim of the course is to provide the student with basic knowledge about gender, social change and development. The course explores economic, political, social, gender, changing society and development. The discussion shall comprise fundamental concepts such as social change, approaches to gender and development, gender and family structure in the changing society, history, globalization and modernization.
35 Pages
1570 Views
0 Downloads
1.01 MB
SPH 201: ELECTRICITY & MAGNETISM II
Trending!
Though use of shortcuts may generally be dangerous in all walks of life, we would rather resort to an easier, cheaper and simpler way of doing things. In the physics world, a very effective tool for simplifying problems, lie in the use of symmetric properties of bodies or systems.
45 Pages
2372 Views
2 Downloads
568.02 KB
COMPUTER NETWORKING
Computer network protocols are formal rules of behavior that govern network communications. The Transmission Control Protocol (TCP) and Internet Protocol (IP) are just two of the data communication protocols encompassed by the Internet Protocol Suite. This protocol suite is usually referred to as TCP/IP partly because TCP and IP are two of the most important protocols of the collection.
175 Pages
155 Views
0 Downloads
1.35 MB
FATHERS OF NATIONS EPISODIC NOTES
Trending!
"Fathers of Nations" by Paul B. Vitta is a 2013 satirical novel set in contemporary Africa, offering a biting critique of the leadership crisis in the continent, marked by poor governance, corruption, and disillusionment.
40 Pages
3750 Views
12 Downloads
453.88 KB