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 | 5079 |
| 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.
LIFE SKILLS HANDBOOK
Trending!
This is an active learning handbook for working with children and young people.
167 Pages
9134 Views
0 Downloads
4.73 MB
PSY103: BIOLOGICAL BASES OF BEHAVIOR
Trending!
This course states the importance of human biology to psychologists and describes the structure of neurons and explain how they communicate
10 Pages
7890 Views
0 Downloads
1.67 MB
EXAMINING THE ABDOMEN
Trending!
This notes contain detailed notes on how to examine the abdomen
6904 Views
0 Downloads
4.88 MB
NEUROLOGIC EXAMINATION
Trending!
NEUROLOGICAL ASSESSMENT—HEALTH HISTORY
113 Pages
7552 Views
0 Downloads
3.06 MB
Introduction to Curriculum-Meaning and definition of terms
Trending!
THE COMMON CONCEPTS AND PRINCIPLES OF CURRICULUM DEVELOPMENT
71 Pages
7510 Views
0 Downloads
721.09 KB
MEANING OF COMPETENCE-BASED CURRICULUM
Trending!
CBC can be interpreted as a curriculum concept that emphasizes the development of the ability to do (competence) tasks with certain performance standards, so that the results can be felt by students in the form of mastery of a particular set of competencies. Its directed to develop knowledge, understanding, abilities, values, attitudes, and interests of students in order to be able to do something in the form of skill, accuracy, and success with full responsibility.
24 Pages
8817 Views
0 Downloads
849.5 KB
Lung & RS Exam
Trending!
This course contains detailed on on lung and RS Exam
47 Pages
7660 Views
0 Downloads
2.25 MB
EXAMINATION OF HEART AND CARDIOVASCULAR SYSTEM
Trending!
Detailed notes on examination of the heart and cardiovascular system
7081 Views
0 Downloads
3.36 MB
Cardiac Arrhythmias
Trending!
This course contains latest notes on cardiac arrhythmias
83 Pages
6287 Views
0 Downloads
1.94 MB