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 | 6122 |
| 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.
BIT 2103: Lesson 2 Ms Excel
Trending!
The ribbon provides shortcuts to commands in Excel. A command is an action that the user
performs. An example of a command is creating a new document, printing a documenting, etc.
13 Pages
10307 Views
0 Downloads
533.77 KB
SCH 103: INTRODUCTION TO ANALYTICAL CHEMISTRY
Trending!
In this lesson, we shall begin by making known to you what analytical chemistry is. The question of what, where, who and why of analytical chemistry will also be answered in this lesson. It will be interesting to learn that analytical chemistry is all around us and everything we do has an aspect of analytical chemistry.
129 Pages
10936 Views
1 Downloads
1.2 MB
2920/202 Computer application ll-notes - geographical information system lecture notes
Trending!
Geographical information system lecture notes
35 Pages
9601 Views
0 Downloads
469.69 KB
2920/202 Computer application ll-notes- artificial intelligence lecture notes
Trending!
Computer application ll-notes- artificial intelligence lecture notes
54 Pages
11101 Views
3 Downloads
704.47 KB
2920/205 Visual programming language looping notes
Trending!
Discribes in writing visual basic programs in implementing looping stutcures
26 Pages
9622 Views
1 Downloads
62.79 KB
2920/204 Qualitative methods/qualitative techniques - topic index numbers
Trending!
This will guide students in calculating and understanding what are index numbers.
22 Pages
10700 Views
2 Downloads
392.97 KB
2920/203 Object oriented programming -c++ concepts
Trending!
This are object oriented programming language programming concepts. It covers all concepts in c++ programming. It includes polymorphism, inheritance, and many others
16 Pages
10313 Views
0 Downloads
303.54 KB
2920/102 Computer application 1 - presentation lecture notes
Trending!
This are presentation lecture notes. It outline and makes students under how to use Ms office publisher
30 Pages
9860 Views
0 Downloads
621.92 KB
2920/206 Database management system - entity relationship model topic notes
Trending!
This is database management system notes. It is topical notes that covers various issues on entity relationship diagram
Covers entity relationship model basic concepts, characteristics of attributes, types of relation and referential integrity.
8 Pages
11485 Views
0 Downloads
172.32 KB