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 | 2124 |
| 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.
KCSE CRE paper 2 Revision Questions and Answers
This is KCSE CRE paper 2 Revision Questions and Answers to help the student understand and know how to answer examination Questions relating to this subject.
6 Pages
970 Views
0 Downloads
945.9 KB
KCSE CRE paper 2 Revision Questions and Answers
This is KCSE CRE paper 2 Revision Questions and Answers to help the student understand and know how to answer examination Questions relating to this subject.
6 Pages
1110 Views
1 Downloads
945.9 KB
ABA 405: STRATEGIC MANAGEMENT
Trending!
COURSE OBJECTIVE: To equip learners with the necessary skills and knowledge required in the practice of strategy formulation, implementation, control and evaluation within the organizational context.
42 Pages
2643 Views
0 Downloads
1.14 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
1585 Views
1 Downloads
497.68 KB
APH 107: Mechanics
Trending!
In physics we deal with physical quantities which are usually quantified by measuring. The process of measuring involves assigning a number to a physical quantity by comparing it with a standard. The standard quantity is called unit and used to measure the given physical quantity.
68 Pages
2346 Views
0 Downloads
1.26 MB
ADF 203: FASHION CHANGE AND HUMAN BEHAVIOUR
Trending!
Recognition is a product of fashion, not because of the visible characteristics, but
because those who are able to sustain the rapid change of fashion set themselves
apart from others by showing they “belong”
19 Pages
3655 Views
1 Downloads
615.58 KB
ADF 303: APPAREL AND ACCESSORES
Trending!
Costume; A style of clothes belonging to a particular cultural or historical concepts and is often used to refer to ethnic or historical clothing as well as those constructed for special rituals e.g. theatre, drama, etc.
82 Pages
2316 Views
2 Downloads
1001.34 KB
ADF 309: PRINCIPLES OF MERCHANDISING
Trending!
Merchandising; The planning required to have the right merchandise at the right time, in the right place, in the right quantities and at the right price for specified target group(s) of consumers.
75 Pages
2776 Views
2 Downloads
1.08 MB
ADF 206: HISTORIC TEXTILES AND TEXTILES CONSERVATION
Trending!
Throughout history man has always created, used and preserved textiles. Thus, textiles have been part of man’s life from time immemorial. This course explores textile conservation and issues related to conservation such as preserving, cleaning, repairing and laundering, which includes traditional and modern methods.
35 Pages
2495 Views
1 Downloads
1.41 MB
ADI 202: COST PLANNING AND CONTROL
Trending!
The Bill of Quantities (BOQ) is defined as a list of brief descriptions and estimated quantities. The quantities are defined as estimated because they are subject to a measurement and are not expected to be totally accurate due to the unknown factors which occur in design work.
16 Pages
2081 Views
0 Downloads
547.59 KB