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 | 2036 |
| 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.
INDIGENOUS LANGUAGES Grade 8 Curriculum Design
Trending!
Download a copy of INDIGENOUS LANGUAGES Grade 8 Curriculum DesignThe notes are precise, complete and comprehensive. This will serve you well!
286 Pages
3413 Views
0 Downloads
2.66 MB
Integrated Science Grade 8 Design
Trending!
Download a copy of Integrated Science Grade 8 DesignThe notes are precise, complete and comprehensive. This will serve you well!
88 Pages
3565 Views
2 Downloads
1.26 MB
CPA/CS;INFORMATION COMMUNICATION TECHNOLOGY NOTES FOUNDATION LEVEL
Trending!
Information and Communication Technology (ICT) plays a crucial role in the education and professional development of Certified Public Accountant (CPA) students in Kenya. Introduction to ICT is an integral part of the CPA syllabus. Students learn about computer hardware, software, programming languages, and tools.
220 Pages
4578 Views
9 Downloads
2.33 MB
Islamic Religious Education Grade 8 Design
Trending!
Download a copy of Islamic Religious Education Grade 8 DesignThe notes are precise, complete and comprehensive. This will serve you well!
64 Pages
3320 Views
1 Downloads
1.31 MB
Kiswahili Grade 8 Curriculum Design
Trending!
Download a copy of ..... The notes are precise, complete and comprehensive. This will serve you well!
420 Pages
3839 Views
0 Downloads
3.51 MB
CPA/CS:INFORMATION COMMUNICATION TECHNOLOGY REVISION KIT FOUNDATION LEVEL
Trending!
This ICT revision kit empowers CPA students by providing essential knowledge, practical insights, and exam readiness. It’s a valuable tool for their academic and professional journey
137 Pages
3736 Views
3 Downloads
1.05 MB
Mathematics Grade 8 curriculum Design
Trending!
Download a copy of Mathematics Grade 8 curriculum DesignThe notes are precise, complete and comprehensive. This will serve you well!
148 Pages
3687 Views
1 Downloads
1.67 MB
Physical Education Sports Grade 8 Curriculum Design ( PE )
Trending!
Download a copy of Physical Education Sports Grade 8 Curriculum Design ( PE )The notes are precise, complete and comprehensive. This will serve you well!
106 Pages
3399 Views
0 Downloads
1.44 MB
REVISED AND SUMMARISED STRUCTURE OF THE KASNEB QUALIFICATIONS UNDER THE APPROVED COMPETENCE FRAMEWORK
Trending!
The overall structure of KASNEB qualifications and the structure of each qualification represented below.
8 Pages
4133 Views
0 Downloads
401.53 KB
Life Skills Education GRADE 8 Curriculum Design
Trending!
Download a copy of Life Skills Education GRADE 8 Curriculum Design.The notes are precise, complete and comprehensive. This will serve you well!
146 Pages
3555 Views
2 Downloads
1.72 MB