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 2052
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
DFB; Food Science and Nutrition Notes Trending!
Food is any Substance which is taken into the body to; a) Build up the tissues and keep them in repair. b) Provide energy in the form of heat for warmth and strength for work c) Protect the body from disease. Food Science is the study of the production, processing, preparation, evaluation and utilization of food.
33 Pages 3322 Views 1 Downloads 302.54 KB
DFB; Human Relations notes Trending!
It is defined as relations with or between people, particularly in a workplace setting. Human relations refers to the interaction of people in all walks of life—in schools, colleges, homes, business, government and so on.
179 Pages 3334 Views 1 Downloads 1.22 MB
ARTISAN; Store keeping notes Recommended! Trending!
Store keeping is the task of maintaining safe custody of all items of supplies, raw materials, finished parts, purchased parts, and other items. These items are held in a storeroom for which a storekeeper acts as a trustee. As such, storekeeping can be defined as process of receiving and distributing stores or supplies.
113 Pages 4551 Views 21 Downloads 1.26 MB
EMPLOYABILITY SKILLS
Very important notes
53 Pages 450 Views 0 Downloads 1.11 MB
PRINCIPLES OF PRACTICE OF MANAGEMENT Trending!
Useful and very insightful . content
13 Pages 3426 Views 0 Downloads 256.68 KB
BBM 125; Fundamentals of Accounting 2
The purpose of this unit is to develop the learners deeper understanding of the principles of book-keeping and accounts and the ability to maintain books of accounts and preparation of financial statements
257 Pages 1570 Views 0 Downloads 693.71 KB
BBM 114; Fundamentals of Accounting 1
Accounting is defined as the process of identifying, measuring and reporting economic information to the users of this information to permit informed judgement.
287 Pages 1381 Views 0 Downloads 736.76 KB
CGA;Agricultural engineering notes Trending!
Surveying is the art of determining the relative positions of different objects on or below the surface of the earth. This is done by measuring the horizontal and vertical distances between them, analyzing the data and presenting them in a suitable form, eg plan, map or report
185 Pages 3155 Views 1 Downloads 5.47 MB
DGA; Soil science Notes Module 1 Trending!
Soil is a dynamic natural body composed of mineral and organic materials, living forms as well as air in which plants grow.
93 Pages 3377 Views 1 Downloads 1.3 MB
DGA; Agricultural engineering 1 Notes Module 1 Trending!
The needs for farm structure varies according to regions, and are greatly influenced by crops grown, animal kept, markets, building material, local conditions and social economic conditions. Some have a specific purpose while others may have a multipurpose or dual purpose in their use. How an individual interprets these variables in relation to useful structures may classify farm structures according to their uses,
153 Pages 3046 Views 3 Downloads 553.68 KB