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 | 1588 |
| 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.
CBC PP2 END YEAR ASSESSMENT EXAMS-ALL SUBJECTS
Trending!
Download a copy of the End Year Assessment test for CBC PP1, It comprises of all the subjects; KISWAHILI ACTIVITY, CRE ACTIVITY, ENVIROMENTAL ACTIVITY, IRE ACTIVITY,MATHEMATICS ACTIVITY,LITERACY ACTIVITY,LANGUAGE ACTIVITY, CREATIVE & PSHYCOMOTOR ACTIVITIES.
34 Pages
3597 Views
1 Downloads
2.83 MB
KISWAHILI FORM 2 TERM 3 END YEAR FULL EXAMS WITH MARKING SCHEMES
Trending!
Get a copy of the KISWAHILI FORM 2 TERM 3 END YEAR FULL EXAMS WITH MARKING SCHEMES. This is a well set and moderated exam paper with a well coordinated comprehensive marking scheme attached herein. Attached is also the EDITABLE Question Papers that you can customize to your preference.
16 Pages
4468 Views
1 Downloads
796.54 KB
COMMUNITY HEALTH KMTC LECTURE NOTES
Trending!
Community refers to a group of people who share some important feature of their lives and use some common agencies and institutions. Community is a specific group of people, often living in a defined geographical area, who share a common culture, values and norms and are arranged in a social structure according to relationships that the community has developed over a period of time.
80 Pages
4585 Views
2 Downloads
1.43 MB
COMMUNICABLE DISEASES KMTC NOTES
Trending!
In this unit, you will explore the common communicable diseases found in this country. The unit is divided into eight sections. In section one and two you will cover patterns and principles of communicable diseases, respectively. In sections three to eight, you will examine specific communicable diseases classified according to their modes of transmission.
80 Pages
4225 Views
2 Downloads
1.27 MB
HUMAN ANATOMY & PHYSIOLOGY KMTC NOTES
Trending!
Homeostasis is any self-regulating process by which biological systems tend to maintain stability while adjusting to conditions that are optimal for survival. If homeostasis is successful, life continues; if unsuccessful, disaster or death ensues. The stability attained is actually a dynamic equilibrium, in which continuous change occurs yet relatively uniform conditions prevail.
109 Pages
3421 Views
1 Downloads
1.54 MB
AEN 400: Advanced Theoretical Studies In Grammar
This course covers key areas in syntax and morphology from a theoretical perspective. In syntax, two approaches have been adopted: the formal and the functional. Issues in morphology are handled within generative grammar. However, as an entry point into the course, we begin by asking some basic questions about the study of language. Some of them you have encountered before but they appear here for recapping purposes.
75 Pages
1940 Views
1 Downloads
226.27 KB
EFN 412: COMPARATIVE EDUCATION
Trending!
Comparative education is a discipline within the field of education. Its main purpose is to
enlighten the teacher trainee on issues of educational systems in other countries with a
view of broadening their perspective on educational problems and attempted solution.
41 Pages
2422 Views
0 Downloads
1.27 MB
EFN 412 :COMPARATIVE EDUCATION
Trending!
Comparative education is a fully established academic field of study that examines
education in one country (or group of countries) by using data and insights drawn from the practices and situation in another country, or countries. Programs and courses in comparative education are offered in many universities throughout the world, and relevant studies are regularly published in scholarly journals such as Comparative Education, International Review of Education, International Journal of Educational
Development, and Comparative Education Review. The field of comparative education is supported by many projects associated with UNESCO and the national education ministries of various nations.
41 Pages
2298 Views
0 Downloads
1.27 MB
MATHEMATICS FORM 2 TERM 3 END YEAR FULL EXAMS WITH MARKING SCHEMES
Trending!
Get a copy of the MATHEMATICS FORM 2 TERM 3 END YEAR FULL EXAMS WITH MARKING SCHEMES. This is a well set and moderated exam paper with a well coordinated comprehensive marking scheme attached herein. Attached is also the EDITABLE Question Papers that you can customize to your preference.
16 Pages
4046 Views
1 Downloads
973.02 KB
BLOOD PHYSIOLOGY
A liquid connective tissue that flows through blood vessels
It forms part of ECF body fluids.
71 Pages
1888 Views
0 Downloads
2.26 MB