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 | 4949 |
| 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.
INTRODUCTION TO MICROBIOLOGY
Trending!
Microbiology is the study of living organisms of microscopic size which includes: Bacteria,Fungi,Algae,Protozoa,Viruses.
15 Pages
2480 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.
8549 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.
8161 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.
8711 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.
7924 Views
0 Downloads
73 KB
CHEMISTRY PRACTICAL NOTES
Trending!
This booklet advices candidate on how he or she should interpret, explain, evaluate and communicate the results of the exercises clearly and logically using relevant chemical knowledge and understanding and using appropriate specialist vocabulary.
43 Pages
5543 Views
3 Downloads
978.89 KB
HOW TO START A FLOWERSHOP BUSINESS IN KENYA
Trending!
A Market Survey of the Flower Business Market in Kenya.
39 Pages
7762 Views
0 Downloads
939.66 KB
HOW TO START A MILK RETAIL BUSINESS IN KENYA
Trending!
A Milk distributor is the link between the milk processor and the retailer. Or if considered in the larger context he links the processor with the consumer.
30 Pages
8603 Views
0 Downloads
1 MB
HOW TO START A SUPERMARKET BUSINESS IN KENYA
Trending!
If you have ever tried to get shelf space you know how frustrating it can be. Often, Supermarkets act up with bureaucratic barriers and what seems like a dim view of your product.
7 Pages
7845 Views
0 Downloads
864.72 KB
HOW TO START A TENTS LEASING BUSINESS IN KENYA
Trending!
The survey focuses on the primary business of hiring out tents and chairs. The entrepreneur in this case purchases the tents and chairs and rents them out to those having events of sorts. Although such a business may entail offering related services such as photography, video ,sound and event management the main focus of the survey is hiring out tents and chair at a small and medium level.
30 Pages
7912 Views
0 Downloads
1.18 MB