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 | 2007 |
| 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.
EDF 410: SOCIAL EDUACATION NOTES
Trending!
The term Sociology originated from two words: Socius which is Latin, and means sharing in a group or companionship and Logos which is Greek, meaning reasoning or science.
2817 Views
0 Downloads
297 KB
SAFETY STANDARDS MANUAL
Trending!
This is a document that the school should use to maintain a Safe, Secure and Caring environment that fosters eaching and learning. This manual therefore sets out the Standards and Guidelines that a school should put in place to enhance Child Safety.
2609 Views
2 Downloads
1020.15 KB
ESM 412: SCIENCE, TECHNOLOGY, AND SOCIETY (3 UNITS)
Trending!
STS is the interdisciplinary study of how science and technology shape society and the environment, and conversely how society and the environment shape science and technology, from various perspectives in the humanities and social sciences: history, anthropology, sociology, philosophy/ethics, and political science/public policy.
3042 Views
2 Downloads
368.5 KB
ENVIRONMENTAL EDUCATION IN SCHOOLS
Trending!
Environmental Education varies in terms of its curriculum and teaching depending on the level of education i.e. Primary, Secondary or Tertiary institutions. Globally this is done using 3 approaches, interdisciplinary, multidisciplinary and issue-based approach. All these methods have their advantages and disadvantages which must be taken into consideration when making a school curriculum for teaching Environmental Education, EE.
2508 Views
0 Downloads
74 KB
MASENO SCHOOL MATH QUESTIONS - Approximation and errors
Trending!
MASENO SCHOOL MATH QUESTIONS - Approximation and errors
2 Pages
4343 Views
2 Downloads
378.54 KB
MASENO SCHOOL MATH QUESTIONS - Binomial Expansion
Trending!
MASENO SCHOOL MATH QUESTIONS - Binomial Expansion
2 Pages
4016 Views
4 Downloads
413.58 KB
MASENO SCHOOL MATH QUESTIONS - Circles, chords and tangents
Trending!
MASENO SCHOOL MATH QUESTIONS - Circles, chords and tangents
13 Pages
3428 Views
2 Downloads
1.76 MB
MASENO SCHOOL MATH QUESTIONS - Commercial Arithmetic 2
Trending!
MASENO SCHOOL MATH QUESTIONS - Commercial Arithmetic 2
3 Pages
5547 Views
5 Downloads
318.64 KB
MASENO SCHOOL MATH QUESTIONS - Equation of a circle
Trending!
MASENO SCHOOL MATH QUESTIONS - Equation of a circle
4 Pages
3446 Views
1 Downloads
599.95 KB
MASENO SCHOOL MATH QUESTIONS - Formula and Variation
Trending!
MASENO SCHOOL MATH QUESTIONS - Formula and Variation
5 Pages
4098 Views
5 Downloads
545.34 KB