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 | 5022 |
| 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.
STRUCTURED PROGRAMMING IN C
Trending!
C language was created by Dennis Ritchie at Bell Telephone Laboratories in 1972. It was designed to develop Unix operating systems. The C language is so named because post cedes B language developed by Ken Thompson in the same place (Bell Labs).
12 Pages
6571 Views
0 Downloads
997.36 KB
INTRODUCTION TO INFORMATION COMMUNICATION TECHNOLOGY
Trending!
Information technology is an all-embracing term referring to the storage, processing or transferring of information using electronic means. The term I.T has more recently been upgraded to become I.C.T, to include the word Communication. I.C.T therefore, is the technology required for information processing, in particular, the use of electronic computers, communication devices and software applications to convert, store, protect, process transmit and retrieve information from anywhere, anytime.
18 Pages
6337 Views
1 Downloads
779.46 KB
INFORMATION COMMUNICATION TECHNOLOGY
A computer is an information-processing machine. It may also be defined as a device that works under the control of stored programs automatically accepting, storing and processing data to produce information that is the result of that processing.
411 Views
0 Downloads
570.5 KB
HRIM 231: HEALTH LAW AND ETHICS
Law: The term refers to a set enforceable commands based on legislative authority and authorized to be carried out by the executive, including the administrative branches of government such as health department.
470 Views
0 Downloads
542.51 KB
BUSINESS LAW NOTES
The terms 'business', 'commercial' and 'mercantile' are synonymous. Commercial Law is a branch of General Law. It relates to industry, trade and commerce. It includes law relating to contracts, sale of goods, partnerships, negotiable instruments, companies, co-operative societies etc. Before we analyze all these concepts, it is important for us to try and understand law in general. We need to know what law is and why it is important for one to study it.
570 Views
0 Downloads
469.5 KB
Introduction to Computer Programming
Trending!
A program is a set of instructions given to a computer to enable it perform or accomplish a specific task. Computer hardware is only as effective as the instructions given to it by the end users and those instructions are contained in software.
15 Pages
3610 Views
0 Downloads
456.59 KB
PHIL: 108 ETHICS, INTEGRITY AND NATIONAL VALUES
Trending!
Ethics: it is a set of moral principles that govern personal behaviors or even conduct of some activity in a recognized institution i.e. in fields such as Business, medical, society and education.
26 Pages
8486 Views
1 Downloads
442.19 KB
COMMERCIAL LAW
This booklet Complies with the revised syllabus july 2015 &the new Kenya Constitution 2010.
567 Views
0 Downloads
333.65 KB
LEVELLING
Leveling is the process of height determination. It finds application in all stages of engineering survey, from topographical mapping to setting out. Through leveling, the heights of points above the mean sea level (elevations) are determined and hence parameters such as gradient or slope could be computed.
In order to execute leveling, an optical or digital level is required to be used in conjunction with a tripod and a leveling staff.
18 Pages
1836 Views
0 Downloads
372.21 KB
INDRODUCTION AND CHAIN SURVEYING
Trending!
The booklet contains Possible Questions and Answers on Chain Surveying.
19 Pages
8149 Views
0 Downloads
385.85 KB