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 | 1556 |
| 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.
ECT210: GENERAL METHODS OF TEACHING
Trending!
UPDATED NOTES ON GENERAL METHODS OF TEACHING
35 Pages
3683 Views
0 Downloads
323.15 KB
AEN203: MORPHOLOGY, SYNTAX AND SEMANTICS
Trending!
UPDATED LECTURE NOTES ON MORPHOLOGY, SYNTAX AND SEMANTICS
35 Pages
4068 Views
1 Downloads
339.63 KB
AGE102: PHYSICAL GEOGRAPHY (1)
Trending!
This course introduces physical Geography, as a branch of geography
that brings together and interrelates the important elements of physical environment (nonliving - solid, liquids and gases) and biological environment (living) the most important being human beings.
102 Pages
3737 Views
2 Downloads
597.52 KB
ARE302: THE CHURCH IN AFRICA
Trending!
The course covers the origin and methodology used by missioneries in the inception of christianity in various parts of Africa. It also explores the major themes in the history of christianity in Africa
104 Pages
3878 Views
3 Downloads
1.67 MB
BCM 213: STRENGTH OF CONSTRUCTION MATERIALS
Trending!
UPDATED NOTES ON STRENGTH OF CONSTRUCTION MATERIALS
57 Pages
2996 Views
0 Downloads
1.99 MB
BCM107: CONTRACT LAW
Trending!
THIS COURSE ENTAILS NOTES ON BUSINESS OF CONSTRUCTION AND CONTRACT BASICS (REGULATORY/LICENSING REQUIREMENTS)
19 Pages
3891 Views
0 Downloads
839.77 KB
DRAINAGE CONSTRUCTION METHODS
Trending!
UPDATED NOTES ON DRAINAGE CONSTRUCTION METHODS
8 Pages
3021 Views
0 Downloads
5.93 MB
ECT300: EDUCATIONAL TECHNOLOGY
Trending!
This course discusses the process of nature of communication and its effects in learning
114 Pages
4250 Views
3 Downloads
1.46 MB
ISC 404: DIGITAL LIBRARIES
Trending!
This course contains concept definitions. Overview of digital libraries. Components and Characteristics of digital libraries:Impact. Digital collections: types and formats. Issues in the development of digital libraries.
28 Pages
3354 Views
1 Downloads
539.49 KB