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 | 2009 |
| 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.
MASENO SCHOOL MATH QUESTIONS - Further Logarithm
Trending!
MASENO SCHOOL MATH QUESTIONS - Further Logarithm
1 Pages
4584 Views
1 Downloads
135.12 KB
MASENO SCHOOL MATH QUESTIONS - Graphical Mathematics
Trending!
MASENO SCHOOL MATH QUESTIONS - Graphical Mathematics
37 Pages
4773 Views
4 Downloads
4.66 MB
MASENO SCHOOL MATH QUESTIONS - Matrices
Trending!
MASENO SCHOOL MATH QUESTIONS - Matrices
4 Pages
4177 Views
5 Downloads
531.53 KB
MASENO SCHOOL MATH QUESTIONS - Quadratic expression and Equation 2
Trending!
MASENO SCHOOL MATH QUESTIONS - Quadratic expression and Equation 2
1 Pages
3379 Views
2 Downloads
307.53 KB
MASENO SCHOOL MATH QUESTIONS - Sequence and series
Trending!
MASENO SCHOOL MATH QUESTIONS - Sequence and series
4 Pages
5311 Views
4 Downloads
558.77 KB
MASENO SCHOOL MATH QUESTIONS - Surds
Trending!
MASENO SCHOOL MATH QUESTIONS - Surds
2 Pages
3887 Views
2 Downloads
150.95 KB
MASENO SCHOOL MATH QUESTIONS - Trigonometry 2
Trending!
MASENO SCHOOL MATH QUESTIONS - Trigonometry 2
2 Pages
4492 Views
2 Downloads
433.2 KB
MASENO SCHOOL MATH QUESTIONS - Vectors 2
Trending!
MASENO SCHOOL MATH QUESTIONS - Vectors 2
6 Pages
3963 Views
5 Downloads
895.81 KB
STA 2101: ALGEBRA FOR STATISTICS AND FINANCE
Trending!
By the end of this course, the student will have a good understanding of algebraic notations, and gained knowledge on how to reason symbolically. Emphasis will be
placed on the study of functions, and their graphs, inequalities, and linear, quadratic, piece-wise defined, rational, polynomial, exponential, and logarithmic functions.
124 Pages
4100 Views
0 Downloads
3.91 MB
STA 2200: PROBABILITY AND STATISTICS II
Trending!
At the end of the course the student should be able to handle problems involving probability distributions of a discrete or a continuous random variable.
52 Pages
4734 Views
3 Downloads
1.86 MB