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 | 4436 |
| 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.
2920/206 Database management system -topic database transaction
Trending!
Database management system notes. Topic is database transaction. It covers what are properties of transaction (acid properties), transaction status, interference between co-current transactions, cocurency control techniques and database recovery techniques
10 Pages
7703 Views
0 Downloads
125.07 KB
2920/206 Database management system - topic relational databases notes
Covers codd's rules of relational databases
Relation algebra (select, projection, catsian products, union, set difference.
15 Pages
573 Views
0 Downloads
250.8 KB
2920/206 Database management system - topic relational databases notes
Covers codd's rules of relational databases
Relation algebra (select, projection, catsian products, union, set difference.
15 Pages
594 Views
0 Downloads
250.8 KB
GRADE 9: CREATIVE ARTS TERM 1,2,3 NOTES
Trending!
Download a copy of the comprehensive GRADE 9: CREATIVE ARTS TERM 1,2,3 NOTES. Perfect resource for teachers and students covering the entire syllabus. Ideal for exam preparation and understanding key concepts.
75 Pages
8653 Views
12 Downloads
1.04 MB
GRADE 9: PRETECHNICAL STUDIES TERM 1,2,3 NOTES
Trending!
Download a copy of the comprehensive GRADE 9: PRETECHNICAL STUDIES TERM 1,2,3 NOTES. Perfect resource for teachers and students covering the entire syllabus. Ideal for exam preparation and understanding key concepts.
85 Pages
8665 Views
10 Downloads
2.69 MB
GRADE 9: INTEGRATED SCIENCE TERM 1,2,3 NOTES
Recommended!
Trending!
Download a copy of the comprehensive GRADE 9: INTEGRATED SCIENCE TERM 1,2,3 NOTES. Perfect resource for teachers and students covering the entire syllabus. Ideal for exam preparation and understanding key concepts.
62 Pages
13746 Views
21 Downloads
1.43 MB
GRADE 9: AGRICULTURE & NUTRITION TERM 1,2,3 NOTES
Recommended!
Trending!
Download a copy of the comprehensive GRADE 9: AGRICULTURE & NUTRITION TERM 1,2,3 NOTES. Perfect resource for teachers and students covering the entire syllabus. Ideal for exam preparation and understanding key concepts.
27 Pages
23222 Views
92 Downloads
15.02 MB
GRADE 9: MATHEMATICS TERM 1,2,3 NOTES
Trending!
Download a copy of the comprehensive GRADE 9: MATHEMATICS TERM 1,2,3 NOTES. Perfect resource for teachers and students covering the entire syllabus. Ideal for exam preparation and understanding key concepts.
271 Pages
10439 Views
14 Downloads
5.61 MB
PHARMACOLOGY
Acquire knowledge of the drug laws in Kenya and be able to apply them in regard to their dosages, actions, indications, contra-indications, side effects, storage, custody, prescribing and/or administration as well as recording.
65 Pages
1365 Views
1 Downloads
573.74 KB
2920/203 object oriented programming- object programming concepts
Trending!
Covers object oriented concepts such as class, object, encapsulation, data abstraction, overloading, reusability and polymorphism
16 Pages
7016 Views
0 Downloads
303.54 KB