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 | 6284 |
| 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.
HRIM 228: PRINCIPLES OF PUBLIC HEALTH
The word health is widely used in public communication, and yet its meaning looks simple. However, closer looks show various and diverse meanings. This chapter discusses the various definitions and determinants of health.
477 Views
0 Downloads
246.5 KB
UCI 201: The Internet & the World Wide Web
Trending!
Updated notes on the Internet & the World Wide Web
70 Pages
9515 Views
0 Downloads
971.78 KB
PSY 112: GENERAL EDUCATION PSYCHOLOGY
Trending!
Updated notes on general education psychology
102 Pages
12446 Views
0 Downloads
1.37 MB
CSCA 101: Computing Basics
Trending!
Updated notes on computing basics
41 Pages
9804 Views
1 Downloads
941.88 KB
TEC 102: COMPUTERS AND MANAGEMENT OF INFORMATION IN EDUCATION
Trending!
UPDATED COMPUTERS AND MANAGEMENT OF INFORMATION IN EDUCATION
38 Pages
10504 Views
9 Downloads
624.16 KB
Solids And Surfaces
Trending!
Updated notes on SolidsAndSurfaces
42 Pages
10035 Views
0 Downloads
1.59 MB
WORKSHOP TOOLS, EQUIPMENT AND MATERIALS
Trending!
UPDATED NOTES ON WORKSHOP TOOLS, EQUIPMENT AND MATERIALS
20 Pages
8202 Views
0 Downloads
1.12 MB
DIGESTIVE SYSTEM
Trending!
UPDATED NOTES ON DIGESTIVE SYSTEM
56 Pages
2599 Views
0 Downloads
973.62 KB