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 | 5075 |
| 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.
KASNEB CICT Syllabus
Trending!
Certified Information Communication Technologists (CICT) Examination Syllabus
58 Pages
8468 Views
2 Downloads
636 KB
KASNEB CIFA Syllabus
Trending!
Certified Investment and Financial Analysts (CIFA) Examination Syllabus
60 Pages
8506 Views
1 Downloads
754.86 KB
KASNEB CS Syllabus
Trending!
Certified Secretaries (CS) Examination Syllabus
59 Pages
8329 Views
0 Downloads
553.66 KB
KASNEB DCM Syllabus
Trending!
Diploma in Credit Management (DCM) Examination Syllabus
32 Pages
7892 Views
0 Downloads
611.91 KB
KASNEB DICT Syllabus
Trending!
Diploma in Information Communication Technology (DICT) Examination Syllabus
28 Pages
8665 Views
2 Downloads
619.99 KB
CPS SEC 5: ADVANCED COMPANY SECRETARIAL PRACTICE
Trending!
Securities refer to those instruments that are used by business organizations to raise finance. The most commonly used securities are:
1. Bonds
2. Shares
3. Convertible securities
4. Commercial Paper/Notes
9017 Views
0 Downloads
1.15 MB
BUSINESS COMMUNICATION
This block focuses on the basic concepts of communication and how relevant they are
to budding managers and leaders.
287 Pages
473 Views
1 Downloads
1.59 MB
Business and Report Writing Skills
Trending!
In business, in the workplace, and in our personal lives, we all stand to benefit from more effective communication skills. Writing is essential to communicate your message clearly and professionally and to incite action in those who you supervise, work with and require action from.
78 Pages
8247 Views
0 Downloads
1.86 MB
COMPANY SECRETARIAL PRACTICE
This is a proffessional study material for Company Secretarial Practice. PART 1 {COMPANY LAW PRACTICES & PROCEDURES}
1071 Pages
526 Views
0 Downloads
3.62 MB
GUIDANCE AND COUNSELLING TRAINING MANUAL
Trending!
The overall goal of this training manual is to equip the Guidance and Counseling teachers (both National and Incentive) from the five camp secondary schools in Kakuma with Basic Counselling skills and knowledge, to enable them assist the learners in their respectiveschools in addressing the psychosocial problems which they encounter in their everyday life both within and outside the camp.
8443 Views
1 Downloads
341.82 KB