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 | 2132 |
| 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.
APS 315: PSYCHOLOGY AND CRIME
Trending!
This lecture seeks to introduce you to the understanding of criminology and criminal behavior. This lecture will also seek to outline the roles of criminal psychologists.
86 Pages
2760 Views
0 Downloads
1.09 MB
UCU 111: Introduction to Critical and Creative Thinking
Trending!
The word “philosophy” comes from the Greek word (philosophia), which literary means “love of wisdom” The word 'philosophy' is derived from the combination of two ancient Greek words; 'philos', which means 'love', and 'sophia', which means 'wisdom'. It etymologically means love of wisdom.
45 Pages
2800 Views
6 Downloads
1.12 MB
NOTES ON SPEAKING SKILLS
Trending!
There are a number of characteristics that a good speaker exhibits. No one is born a good speaker but we can continually improve our skills. We need to keep assessing ourselves and identifying areas we should work on.
5 Pages
2374 Views
0 Downloads
557.49 KB
CRE JOINT EXAMINATION BOOKLET
Trending!
The purpose of this CRE joint examination Revision booklet is to equip the student with knowledge and skills to improve his or her attitude towards passing the final exams
224 Pages
3912 Views
0 Downloads
2.78 MB
ENGLISH FORM 3 NOTES
Trending!
The purpose of this English form 3 notes is to equip the trainee or student with knowledge and skills to enable him or her pass the final exams with flying colours.
258 Pages
3425 Views
5 Downloads
1.27 MB
Biology form 2 Revision Questions and Answers
Trending!
The purpose of this biology Revision material is to equip the student with knowledge and skills to enable him or her understand how to answer final exam questions correctly
3856 Views
0 Downloads
207.5 KB
BIOLOGY FORM 2 REVISION BOOKLET QUESTIONS AND ANSWERS
Trending!
The purpose of this biology Revision Questions and Answers is to equip the student with knowledge and skills to enable him or her understand how to answer the questions and pass the final exams with flying colours
51 Pages
6032 Views
2 Downloads
1.66 MB
MICROECONOMICS FULL NOTES
This course provides the student with an introduction to the basic elements of modern microeconomics. The course provides coverage of the institutional background and the history of significant microeconomic ideas and issues in Kenya and around the world. It will develop an understanding of how microeconomics relates to practical life. Students are expected to apply the knowledge in other economics units. The study employs extensive use of diagrams and mathematical expressions in the illustration of concepts.
107 Pages
996 Views
2 Downloads
497.68 KB
ASC 200: INTRODUCTION TO SOCIAL THEORY
Social Action, according to Max Weber, is action that takes others into account. At the individual or group level this refers to interpersonal influence: how people are affected by co-present others or the expectations associated with generalized others, so that they dress, talk, and act in predictable ways but social action also includes groups, organizations, and institutions, however, and influence within and across these levels of analysis.
110 Pages
1268 Views
0 Downloads
1.19 MB
AGD 214: GENDER ISSUES IN GOVERNANCE & DEMOCRACY
In this lesson we shall critically analyze the emerging issues in governance that revolve around such themes as corruption, leadership, ethnicity, land, civil and human rights and their gender implications.
21 Pages
1946 Views
0 Downloads
858.63 KB