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 | 2063 |
| 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.
PHARMACEUTICAL MICROBIOLOGY
Trending!
Microbiology is the study of microbes. Pharmaceutical microbiology may be defined as that part of microbiology that has a special bearing in pharmacy in all aspects. This will range from manufacturing and quality in pharmaceutical products to understanding the mode of action of antibiotics.
21 Pages
2116 Views
1 Downloads
507.07 KB
BURNS
Burns are tissue injury caused by thermal, radiation, chemical, or electrical contact resulting in protein denaturation, loss of intravascular fluid volume due to increased
vascular permeability and oedema.
8 Pages
652 Views
0 Downloads
375.73 KB
FEMURAL NECK FRACTURES
Trending!
Femoral neck fractures most commonly occur after falls. Factors that increase the risk of injuries are related to conditions that increase the probability of falls and those that decrease the intrinsic ability of the person to withstand the trauma.
3 Pages
3389 Views
0 Downloads
72.57 KB
PAEDIATRIC NURSING
The student will acquire knowledge, skills, and attitudes to promote health, prevent illness, diagnose, manage and rehabilitate infants and children suffering from common childhood conditions/diseases
63 Pages
749 Views
0 Downloads
1.21 MB
HISTORY TAKING
Particulars –name, age, gender, sex, address, religion, name of parents, telephone number, date, time, weight percentile and who is giving history.
123 Pages
1095 Views
0 Downloads
590.46 KB
MALARIA
Malaria is an infection caused by the protozoa called plasmodia through the bite of an infected female anopheles mosquito and is characterized by on and off fever, chills, sweating, joint pain, backache, headache, enlargement of the spleen (splenomegally), and repeated attacks.
5 Pages
677 Views
0 Downloads
313.09 KB
ACUTE COMPLICATIONS OF DIABETES MELLITUS
Trending!
Diabetic ketoacidosis (DKA) and nonketotic hyperosmolar state (NKHS) are acute
complications of diabetes. DKA is seen primarily in individuals with type 1 DM, and NKHS is seen in individuals with type 2 DM.Both disorders are associated with absolute or relative insulin deficiency, volume depletion, and altered mental status.
14 Pages
3611 Views
0 Downloads
223.59 KB
SURGERY NOTES
Trending!
Omphalocele is a congenital defect of the periumbilical abdominal wall in which the coelomic cavity is covered only by peritoneum and amnion (membrane covering). There are two kinds of omphalocele: fetal and embryonic.
203 Pages
3218 Views
1 Downloads
3.04 MB
ARCHIVES AND RECORDS MANAGEMENT
Trending!
Archives Management is concerned with the study of managerial functions that an individual needs to posses to effectively manage archives. This subject aims at imparting to the trainee knowledge and skills that will enable him/her to be able to appreciate the role of archives in the management of organizations. The trainee
should be able to identify the various types of archives and be able to perform archives management functions.
92 Pages
2765 Views
0 Downloads
788.35 KB
FOOD PRODUCTION THEORY
This course unit is intended to impact in trainees in cooking skills and attitudes required for professional cookery-it gives the trainee abroad knowledge of raw food materials and the application in food and beverage application.
137 Pages
1412 Views
0 Downloads
617.13 KB