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 | 1589 |
| 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 HANDBAGS BUSINESS IN KENYA
Trending!
A Quick Study of The Potential of a Handbag business.
13 Pages
3288 Views
1 Downloads
741.07 KB
HOW TO START A GIFT SHOP BUSINESS IN KENYA
Trending!
Gift services in Nairobi and generally in Kenya are essentially facilities linking suppliers with consumers, same way as neighborhood kiosks, online shops or supermarkets would do. The difference is in the branding; the ability to take every day items package and present them as ‘gifts’.
23 Pages
3426 Views
0 Downloads
886.59 KB
HOW TO START A SMOKIES & EGGS VENDING BUSINESS IN KENYA
Trending!
A survey of the Smokies, Sausages and Eggs Street Vending Business.
26 Pages
3383 Views
0 Downloads
1.07 MB
HOW TO START A FRUITS PARLOUR BUSINESS IN KENYA
Trending!
A Plan on The Fruits Parlor Business in Kenya
23 Pages
3099 Views
0 Downloads
958.16 KB
BBA 200: ORGANIZATION BEHAVIOUR
Trending!
Organization behaviour is a field of study that investigates the impact that individuals,
groups and structure have on behaviour within organizations for the purpose of applying such knowledge towards improving an organizations effectiveness.
3505 Views
1 Downloads
527 KB
INTRODUCTION TO MICROBIOLOGY
Microbiology is the study of living organisms of microscopic size which includes: Bacteria,Fungi,Algae,Protozoa,Viruses.
15 Pages
1713 Views
0 Downloads
172.89 KB
LESSON PLAN FORMAT
Trending!
A lesson plan is a written guide for teachers plans in order to achieve the intended learning outcomes. It provides specific definition and direction on learning, objectives, equipment, instructional media, material requirements, and conduct of the training.
3176 Views
0 Downloads
146.74 KB
BANK RECONCILIATION NOTES
Trending!
In this chapter we look at the way in which a business deals with any differences between the balance of the bank account in the cashbook and the closing balance of the bank account shown by the bank statement for the same period. These differences are explained by a document known as bank reconciliation statement.
3707 Views
0 Downloads
713.5 KB
BBA 204: TECHNOLOGY AND CREATIVITY
Trending!
Innovation is an essential constituent element of successfully marketing strategies in a business. Businesses of all sizes and across the spectrum of industrial and commercial activities need to plan for the systematic development of new products and services. Experienced entrepreneurs who have the authority and skills to search for new ideas and pursue them with energy and intelligence should direct these efforts towards these tasks.
3487 Views
0 Downloads
76 KB
BANK RECONCILIATION STATEMENTS
Trending!
A bank reconciliation statement explains the difference between the balance at the bank as per the cashbook and balance at bank as per the bank statement.
3460 Views
0 Downloads
73 KB