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 | 1630 |
| 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.
BMS102: MANAGEMENT MATHEMATICS
Trending!
UPDATED NOTES ON MANAGEMENT MATHEMATICS
3645 Views
1 Downloads
418 KB
CFM 101: BUSINESS FINANCE
Trending!
UPDATED NOTES ON BUSINESS FINANCE
187 Pages
2929 Views
1 Downloads
1.41 MB
INTRODUCTION TO LIGHT MICROSCOPY
Trending!
Updated notes on light microscopy
17 Pages
3415 Views
0 Downloads
505.86 KB
PHT 112: HIV AIDS Determinants, Prevention and Management
Updated notes on HIV AIDS Determinants, Prevention and Management
64 Pages
418 Views
1 Downloads
1.03 MB
MAUDHUI NA FANI KATIKA TAMTHILIA ZA KISWAHILI
Trending!
UPDATED NOTES ON MAUDHUI NA FANI KATIKA TAMTHILIA ZA KISWAHILI
283 Pages
3504 Views
1 Downloads
1.38 MB
CIM 110: COMMUNICATION SKILLS
Trending!
This module seeks to provide interactive content for undergraduate students who are enrolled for various undergraduate degree programs of Moi University in the School of Education. The module covers content for communication skills which is a core course for all degree programs.
134 Pages
6133 Views
2 Downloads
1.88 MB
EDF 112: CHARACTER EDUCATION AND INTEGRITY
Course Purpose; To enable the learner appreciate the contributions of education in value development and its place in the moral life of the society.
3 Pages
824 Views
19 Downloads
160.68 KB
SELECTED FORMAL PHILOSOPHIES OF EDUCATION
Trending!
Behind every school system, educational approach and practice, there is a philosophy based on the views and values of the educators, as well as the society that is sponsoring the education. The philosophy starts with the view of reality and definitions of truth and goodness. From this, the mission and goals of education (and schools) and the emphasis of the instruction (given in schools or classrooms) are defined and established. The various philosophies are based on a view of society and what is important, as well as political beliefs to a degree.
17 Pages
3391 Views
0 Downloads
367.25 KB
INTRODUCTION TO QUANTITATIVE TECHNIQUES IN EDUCATION
Trending!
Quantitative methods in education will serve as a context for the development of Quantitative skills by facilitating the development of your abilities to solve real world problems, make intelligent (more informed) decisions, evaluate quantitative information, and reason more effectively.
81 Pages
3186 Views
0 Downloads
2.26 MB
SNE 100: Special Needs Education Notes
Trending!
Special needs: Is defined as an individual with a mental, emotional, or physical
disability. An individual with special needs may need help in one or more of the
following areas:Communication, Movement, Self-care,Decision-making.
123 Pages
4985 Views
6 Downloads
1.52 MB