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 | 4953 |
| 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 PHOTOCOPY BUREAU BUSINESS IN KENYA
Trending!
Here the focus is on a bureau offering photocopying services, and may also include a computer and a printer. The computer is mainly used for typing and type setting. The bureau may also sell basic stationery items like envelopes, pens and notebooks.
14 Pages
7667 Views
0 Downloads
869.07 KB
HOW TO START A MOTORCYCLE SPARE PARTS BUSINESS IN KENYA
Trending!
A Market Survey of the Bodaboda Spare Parts Retail Business.
32 Pages
7480 Views
0 Downloads
1.03 MB
Elementary Programming Principles
Trending!
UPDATED NOTES ON ELEMENTARY PROGRAMING PRINCPLES
59 Pages
7508 Views
0 Downloads
1.09 MB
TheDataProtectionAct__No24of2019
Trending!
UPDATED NOTES ON DATA PROTECTION ACT
49 Pages
7444 Views
0 Downloads
412.61 KB
HIS4109: INFORMATION COMMUNICATION AND DEVELOPMENT
Trending!
UPDATED NOTES ON INFORMATION COMMUNICATION AND DEVELOPMENT
16 Pages
7229 Views
0 Downloads
809.91 KB
PSY 211: GUIDANCE AND COUNSELLING
Trending!
Guidance means of helping individuals to understand and use wisely the educational, vocational and personal opportunities they have as a form of systematic assistance in achieving satisfactory adjustment to school and to life in general.
7067 Views
1 Downloads
608.55 KB
Ethics for IT Workers and IT Users
Trending!
Ethics in Information Technology, Fourth Edition
7108 Views
0 Downloads
710 KB
Computer Legal and Ethical Issues
Trending!
The focus is on technical approaches to the detection, prevention, and recovery from
computer and network attacks. One other tool is the deterrent factor of law enforcement. Many types of computer attacks can be considered crimes and, as such, carry criminal sanctions. This section begins with a classification of types of computer crime and then looks at some of the unique law-enforcement challenges of dealing with computer crime.
7079 Views
0 Downloads
113.27 KB