INTRODUCTION TO C++ PROGRAMMING YEAR 1

Institution UNIVERSITY
Course BACHELOR OF SCIENCE...
Year 1st Year
Semester Unknown
Posted By stephen oyake rabilo
File Type pdf
Pages 33 Pages
File Size 207.62 KB
Views 2032
Downloads 0
Price: Buy Now whatsapp Buy via whatsapp
  • whatsapp
  • facebook
  • twitter

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.

No preview available
Kmtc Behavioural science Trending!
This course is aimed at equipping the trainees with relevant knowledge; skills and attitudes that shall enable them understand basic elements of human behavior and appreciate differences in human behavior.
56 Pages 3094 Views 5 Downloads 517.66 KB
APPLIED BIOLOGY NOTES Trending!
The word biology is derived from the Greek words /bios/ meaning /life/ and /logos/ meaning /study/ and is defined as the science of life and living organisms. An organism is a living entity consisting of one cell e.g. bacteria, or several cells e.g. animals, plants and fungi.
70 Pages 4681 Views 1 Downloads 1.84 MB
HEALTH DATA CLASSIFICATION NOTES Trending!
Refers to the translation of medical terms for diagnoses and procedures into code numbers from standardized codesets
26 Pages 4009 Views 1 Downloads 430.94 KB
KMTC HIV/AIDS NOTES Trending!
HIV is a virus that targets and alters the immune system, increasing the risk and impact of other infections and diseases. Without treatment, the infection might progress to an advanced disease stage called AIDS. However, modern advances in treatment mean that people living with HIV in countries with good access to healthcare very rarely develop AIDS once they are receiving treatment.
19 Pages 4440 Views 3 Downloads 208.88 KB
KMTC INTRODUCTION TO HUMAN ANATOMY AND PHYSIOLOGY Trending!
Anatomy, from the roots "ana" (apart) and "tom" (cut), is the study of the form of the body. Anatomy names the muscles in the body and their locations
16 Pages 4936 Views 1 Downloads 827.41 KB
KMTC management of malnutrition notes Trending!
The term malnutrition generally refers both to undernutrition and overnutrition, but in this guide we use the term to refer solely to a deficiency of nutrition
85 Pages 3590 Views 1 Downloads 2.15 MB
KMTC DIABETIC KETOACIDOSIS NOTES Trending!
Omitting insulin in type 1 diabetes mellitus or increase in insulin requirements,
4 Pages 3281 Views 0 Downloads 230.59 KB
KMTC HAEMOPHILIA A NOTES Trending!
A inherited blood disease where your blood does not clot normally.
2 Pages 2953 Views 0 Downloads 38.46 KB
KMTC PEPTIC ULCER NOTES Trending!
The stomach is a muscular bag forming the widest and most distensible part of the digestive tube. It is connected above to the lower end of the esophagus and below to the duodenum. It acts as a reservoir of food and helps in digestion of carbohydrates, proteins and fats.
11 Pages 3429 Views 0 Downloads 365.61 KB
KMTC DRUG AND SUBSTANCE ABUSE NOTES Trending!
A drug is any substance or product that once taken in the body is capable of causing physiological and psychological changes
12 Pages 3258 Views 2 Downloads 682.84 KB