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 | 1460 |
| 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.
NSSF TEMPLATE
Recommended!
AFTER APPLICATION OF NSSF YOU CAN FILL IN CUSTOMERS DETAILS
716 Views
61 Downloads
353.86 KB
Wedding template
This wedding card template features a sophisticated and modern design, perfect for couples who want a graceful yet stylish invitation.
312 Views
1 Downloads
137.27 KB
NEW POLICE ABSTRACT
this is a new police abstract form. NB Do not use the old abstract form
10 Pages
242 Views
0 Downloads
4.11 MB
Land Sale Agreement Form
Get a copy of a comprehensive land sale agreement form for your transaction
2 Pages
220 Views
0 Downloads
157.6 KB
SHA & NHIF TEMPLATE
BE PROFFESSIONAL WITH A CUSTOMIZED CARD FOR FOR THOSE REGISTERING SHA. IT IS EDITABLE
254 Views
4 Downloads
1.02 MB
Catholic Mass Reading For 28th September 2025
Catholic mass reading for 28th September 2025.
3 Pages
143 Views
0 Downloads
5.71 KB