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 | 1587 |
| 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.
HOW TO START A CARWASH BUSINESS IN KENYA
Trending!
This is a quick guide to the standard car wash business.
19 Pages
2989 Views
1 Downloads
928.67 KB
HOW TO START A PORK EATERY BUSINESS IN KENYA
Trending!
A Market Survey of the Pork Eateries Business In Kenya.
3417 Views
0 Downloads
775.58 KB
HOW TO START A WINES & SPIRITS BUSINESS IN KENYA
Trending!
An Overview of the Wines & Spirits Retail Business.
30 Pages
3210 Views
1 Downloads
1.2 MB
HOW TO START A SALON BUSINESS IN KENYA
Trending!
A Report of the Hair Salon Business.
37 Pages
2786 Views
0 Downloads
1013.99 KB
HOW TO START A CHAPATI BUSINESS IN KENYA
Trending!
A Survey of the Chapati Business Market.
23 Pages
3327 Views
0 Downloads
913.97 KB
HOW TO START A CHIPS & CHICKEN BUSINESS IN KENYA
Trending!
This quick guide refers to the business of Chips and Chicken café found in urban centers and urban estates. Though touching on a little of everything the quick guide will be biased towards chips (or fries) which is the main serving. Though not entirely focusing on Nairobi, in some sections it’s biased towards the city. Most of the information to do with licenses, equipment,Revenue and operations are applicable in any urban center.
28 Pages
4053 Views
0 Downloads
962 KB
HOW TO START A BOOKSHOP BUSINESS IN KENYA
Trending!
Bookshop Business Quick Market Survey.
20 Pages
3174 Views
0 Downloads
906.71 KB
HOW TO START A TIMBER YARD BUSINESS IN KENYA
Trending!
Broadly demand for timber is driven by a growing population, positive economic growth, urbanization and tastes. These influence investment in the building sector which is the biggest consumer of timber sold through yards in Kenya.
22 Pages
4114 Views
5 Downloads
1017.69 KB
HOW TO START A PUB BUSINESS IN KENYA
Trending!
Since the Mututho laws (Alcoholic Drinks Control Act 2010) licensing of bars has
become more bureaucratic and requirements a bit confusing. Before we go into the
revenue and competition figures here is some information about the licenses.
21 Pages
3418 Views
0 Downloads
876.78 KB
HOW TO START A GAS RETAIL BUSINESS IN KENYA
Trending!
The business involves consumers exchanging their empty gas cylinders with a full refilled cylinder at a fee. The retailer takes the empty cylinder to a wholesaler who refills it at an agreed price then sells to the next customer.
30 Pages
3563 Views
0 Downloads
1010.21 KB