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 | 4463 |
| 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.
SMA 2104: Mathematics for Sciences - Lesson 4 Factorisable polynomials
Trending!
Upon completing this topic, you should be able to factorise and solve polynomials of degree higher than 2
No pages found
7116 Views
0 Downloads
277.4 KB
SMA 2104: Mathematics for Sciences - Lesson 5 Permutations and Combination
Trending!
Permutations and Combination
Permutations - This is defined as the number of different ways of arranging different objects in order.
No pages found
6905 Views
0 Downloads
273.38 KB
SMA 2104: Mathematics for Sciences - Lesson 6 Binomial expansion
Trending!
Upon completing this topic you should be able to understand the binomial theorem and it’s application in the expansion of expressions and in approximations.
No pages found
6612 Views
0 Downloads
282.79 KB
SMA 2104: Mathematics for Sciences - Lesson 7 Probability
Trending!
Upon completing this topic,you should be able to;- Apply the principles of probability to solve problems in real-world contexts. Understand and use the language of probability and to compute the probabilities of composite events using the basic rules of probability.
No pages found
7390 Views
0 Downloads
395.57 KB
SBC100: STRUCTURE OF BIOMOLECULES
Trending!
They are well descritive
30 Pages
8635 Views
0 Downloads
2.65 MB
SMA 2104: Mathematics for Sciences - Lesson 8 Statistics
Trending!
Upon completing this topic,you should be able to Collect, organize, and represent data, and be able to recognize and describe relationships. Apply the principles of statistics to solve problems in real world contexts. Demonstrate knowledge of statistical terms. Differentiate between the two branches of statistics. Identify types of data. Understand and use the basic measure of central tendency
No pages found
6659 Views
0 Downloads
282.84 KB
SMA 2104: Mathematics for Sciences - Lesson 9 TRIGONOMETRY
Trending!
Upon completing this topic, you should be able to Define, manipulate and apply trigonometric functions. Define the basic trigonometric ratios, sine, cosine and tangent of an angle and derive the other trigonometric ratios; cosecant, secant and cotangent using the basic trigonometric ratios. Derive identities involving the trigonometric ratios
11 Pages
7916 Views
0 Downloads
635.34 KB
SMA 2104: Quadratic Equations Practice Problems
Trending!
Quadratic Equations Practice Problems, Solving Quadratic Equations When the Product of Two Numbers is Zero
12 Pages
6590 Views
0 Downloads
602.99 KB
SMA 2104: Factorisation Practice Questions
Get a copy Factorisation Practice Questions, this is suitable for your revision
2 Pages
485 Views
0 Downloads
38.59 KB
SMA 2104: Factorisation Practice Questions Answers
Trending!
Factorisation Practice Questions Answers
2 Pages
7143 Views
0 Downloads
38.59 KB