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 | 1644 |
| 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.
Principles of Risk Management & Insurance
This course provides a working definition of risk and a discussion of the various types of
risk
138 Pages
290 Views
1 Downloads
2.52 MB
STRATEGY FOR COMMUNITY HEALTH
Trending!
Kenya’s second National Health Sector Strategic Plan (NHSSP II: 2005-2010) defined a new approach to the way the sector would deliver health care services to Kenyans, using the Kenya Essential Package for Health (KEPH) and community involvement approaches
44 Pages
2762 Views
1 Downloads
2.81 MB
Epidemiology for HRIM
Trending!
Updated notes on Epidemic Disease Occurrence
30 Pages
2883 Views
0 Downloads
1.16 MB
BASIC PRINCIPLES OF MARKETING AND MANAGEMENT
Trending!
This lesson deals with basics of the marketing process, marketing
concept and marketing mix i.e. product, price, place and promotion
486 Pages
3606 Views
0 Downloads
1.11 MB
STCA 301: Introduction to Computer Applications
Trending!
Latest notes on introduction to computer application
55 Pages
2498 Views
1 Downloads
1.03 MB
Unit 3: Pathology of the Kidney and Urinary Tract
Trending!
Renal pathology has a significant impact on morbidity and mortality due to the vast
functions of the renal system in maintaining optima functioning of body systems ,Primary function of the kidney is regulation of the extra-cellular fluid environment a
process accomplished through formation of urine (modified form of plasma)
72 Pages
3740 Views
0 Downloads
2.7 MB
CNS PATHOLOGY
Trending!
NS is the most complex body system whose working determines our personality, intelligence and skills. It is specialized properties of irritability, conduction and integration.
53 Pages
3133 Views
0 Downloads
2.07 MB
PATHOLOGY OF GASTROINTESTINAL SYSTEM
Trending!
GIT is the portal through which nutritive substances and fluid enter the body
• Digestion and absorption are the two major functions of the digestive system
• Primary function of the digestive system is to bring essential nutrients into the internal environment so that they are available to each cell of the body.
77 Pages
4178 Views
0 Downloads
4.85 MB
Pathology of the Hepatobiliary System
Trending!
Hepatobiliary system includes the liver, pancreas, gallbladder and bile ducts.
69 Pages
3478 Views
0 Downloads
2.21 MB
PHARMACOLOGY OF PARATHYROID GLAND
Trending!
Most individuals possess four parathyroid glands situated posterior to the upper and lower lobes of the thyroid.
3557 Views
0 Downloads
278.53 KB