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 | 2058 |
| 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.
HE/CU/TT/CC/03/6/A: COMMON DISEASES
This unit specifies the competencies required to demonstrate the knowledge of common diseases. It involves identifying the stages of disease development, demonstrating the knowledge of communicable diseases, non-communicable diseases and management of common diseases
14 Pages
771 Views
4 Downloads
299.77 KB
Occupational health and safety
Trending!
This unit specifies the competencies required to lead the implementation of workplace’s safety and health program, procedures and policies/guidelines
25 Pages
2124 Views
1 Downloads
487.91 KB
HE/CU/TT/CC/04/6/A: PROVISION OF FIRST AID SERVICES
Trending!
This unit specifies the competencies required to provide first aid. It involves providing
cardio- pulmonary resuscitation; managing choking, burns, scalds, trauma, nose bleeding,
cuts, fractures, drowning, poisoning and snake bites. It also involves assisting patients with
existing conditions such as asthma, epilepsy and diabetes
32 Pages
2857 Views
1 Downloads
489.01 KB
ENVIRONMENTAL LITERACY
This unit specifies the competencies required to follow procedures for environmental hazard control, follow procedures for environmental pollution control, comply with workplace sustainable resource use, evaluate current practices in relation to resource usage, develop and adhere to environmental protection principles/strategies/guidelines.
65 Pages
260 Views
0 Downloads
934.71 KB
HE/CU/TT/CC/01/6/A: HUMAN ANATOMY AND PHYSIOLOGY
This unit specifies the competencies required to demonstrate the knowledge of human anatomy and physiology. It involves demonstrating the knowledge of organization of the human body, body fluids and their functions, body tissues; membranes and their functions, body cavities, human skeletal system, major muscles of the body and their functions, body joints, circulatory system, lymphatic system, endocrine system and its functions, nervous system and its function, digestive system and its function, urinary system and its function respiratory system and its function, special senses and their functions, reproductive system and its functions.
80 Pages
996 Views
2 Downloads
2.69 MB
Community home based care Notes
Trending!
Community home based care is defined as any HIV and related care provided to people in their homes by formal or informal caregivers.
96 Pages
3859 Views
0 Downloads
5.45 MB
Introduction to Psychology
Since its emergence as a separate science it has
undergone a series of changes in its research
methodology and definition.
Widely used definition: Psychology is the science of
human and animal behavior.
When explaining the definition underline the main
components of the definition.
68 Pages
316 Views
0 Downloads
307.23 KB
Sociology and Anthropology
The definition of sociology
The definition of anthropology
The difference between sociology and anthropology
Concepts in sociology
16 Pages
303 Views
1 Downloads
296.32 KB
Child Protection, Case Management and Referral
Trending!
The case management process involves assisting a child (and their family)
through direct support and referral to other services for comprehensive
intervention in risky situation.
It consists of intake, assessment, planning, implementation, monitoring, review of case plan and closure of the case with an aim of delivering quality services to the child and the family.
It calls for a multi-sectoral approach by all child protection stakeholders including national, county government, civil society organizations, community, family and children to address child protection concerns.
The Guidelines are aimed at standardizing service delivery in case management and referral mechanisms in child protection in Kenya.
150 Pages
3360 Views
0 Downloads
1.94 MB
CPA;Advanced Financial management Notes Advanced Level
Trending!
The purpose of these Advanced financial management notes is to equip the candidate or student with knowledge and skills to enable him or her to implement regulations and policy directives governing advanced public financial management issues,apply advanced financial management methods and techniques to analyze and manage public debt, public investments among other areas in the public finance sector.
344 Pages
4736 Views
5 Downloads
6.73 MB