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 | 2065 |
| 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.
HBC2202: INTRODUCTION TO FINANCIAL MANAGEMENT
Trending!
The course will develop your analytical skills and teach you to evaluate theory and
implement procedures within the corporate sector and financial institutions.
167 Pages
3239 Views
0 Downloads
624.76 KB
HBC 2304: RESEARCH METHODOLOGY
Trending!
Research Methodology Course is a course on the subject of disciplined enquiry. The
course will mainly cover science research process. The students will be expected to have taken a course in statistics to enable them appreciate the use of statistics in science research in general and data processing and analysis in particular.
146 Pages
2472 Views
0 Downloads
472.31 KB
Operating Systems
An operating system is a software that manages the computer hardware. The hardware must provide appropriate mechanisms to ensure the correct operation of the computer system and to prevent user programs from interfering with the proper operation of the system.
159 Pages
623 Views
0 Downloads
1.18 MB
BMA 1207: INTRODUCTION TO BUSINESS MATHEMATICS
Trending!
The purpose of this module: the learner to acquire Basic mathematical concepts in order to prepare for the advanced courses and acquiring positive attitude, knowledge and skills which will be relevant to her/his life in the university.
107 Pages
5213 Views
3 Downloads
1.36 MB
BBM 312: BUSINESS STATISTICS
Trending!
A Statistician collects information for variables, which describe the situation. A variable is a characteristics or attribute that can assume different values. That is Data are values, measurements or observations that the variables can assume. Variables whose values are determined by chance are called random variable.
71 Pages
3530 Views
2 Downloads
932.96 KB
BASIC COMPUTER KNOWLEDGE
Trending!
The first computing machine was known as ABACUS which was used in ancient China and Japan thousands of years before Christ for simple and small volumes arithmetics. John Napier invented Logarithms which was an aid to calculations, he also published log tables in 1614 and later in 1620s it was used by William Oughtred to develop the slide rule.
56 Pages
2363 Views
0 Downloads
1.2 MB
CMCC 2401: Introduction to Project Management
Trending!
A project is a series of activities aimed at producing a good or a service. According to the project management institute, a project is defined as a temporary endeavor undertaken to create a unique product/ service. Temporary means that every project has a definite end. Unique means that the product or service is different in some distinguishing way from all similar products or services.
91 Pages
3285 Views
1 Downloads
889.24 KB