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 | 2026 |
| 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.
Science scheme of work class 1 notes
Trending!
Simplified notes
8 Pages
3842 Views
0 Downloads
409.83 KB
WAREHOUSING OPERATIONS AND STOCK CONTROL
Trending!
Warehousing is the storage of goods until they are needed. The goal of warehouse operations is to satisfy customers’ needs and requirements while utilizing space, equipment, and labor effectively. The goods must be accessible and protected. Meeting this goal requires constant planning and ongoing change.
59 Pages
3044 Views
1 Downloads
1.85 MB
4 Ps of Marketing
Trending!
Marketing is the process of getting potential clients or customers interested in your products and services. The keyword in this definition is "process". Marketing involves researching, promoting, selling, and distributing your products or services.
21 Pages
2960 Views
0 Downloads
765.94 KB
GENERAL STUDIES NOTES
Trending!
The basis of any family is the couple i.e. a man and a woman who are united by marital bond or by marriage. Marriage is the marital union of man and woman by virtue of living together in undivided partnership.
36 Pages
3520 Views
0 Downloads
546.25 KB