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 | 6307 |
| 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.
PULMONARY NURSING
Trending!
BY THE END OF THE MODULE THE LEARNER
SHOULD MANAGE PATIENTS WITH RESTRICTIVE
RESPIRATORY DISORDERS USING THE NURSING
PROCESS AND PATIENTS WITH OBTRUCTIVE
RESPIRATORY DISORDERS USING THE NURSING
PROCESS.
2312 Views
0 Downloads
1.81 MB
ENDOCRINOLOGY
Trending!
This course contains detailed notes of the endocrine system
2196 Views
0 Downloads
4.94 MB
EXAMINATION OF UPPER EXTREMITIES
Trending!
Detailed notes on how to examine the upper extremities
8727 Views
0 Downloads
19.15 MB
Introduction to the Internet of Things
Trending!
Recommendation ITU-T Y.2060 provides an overview of the
Internet of Things (IoT). It clarifies the concept and scope of the
IoT, identifies the fundamental characteristics and high-level
requirements of the IoT and describes the IoT reference model
48 Pages
8060 Views
0 Downloads
1.79 MB
BIG DATA 1
Trending!
This module contains notes on the History of Big Data, its characteristics and supporting trends
34 Pages
6974 Views
0 Downloads
1.91 MB
Introduction to Drone Technology
Trending!
This module contains detailed notes on drone code and drones and the law
15 Pages
9025 Views
0 Downloads
1.67 MB
GENERAL SURVEY
Trending!
This course contains slide notes on general survey of a patient
8161 Views
0 Downloads
984.52 KB
BEP 1103: Philosophy of Education
Trending!
This course defines phylosophy, describes Kenya national phylosophy, its categories and describe philosophies of different philosophers and their contributions to ECDE
53 Pages
9680 Views
3 Downloads
233 KB
BAC204: BUSINESS FINANCE II
Trending!
Business Finance provides strong theoretical foundations in financial management while emphasizing practical applications of the concepts. This module targets students undertaking introductory and intermediate finance course at the university level by providing rigorous conceptual foundation. It also incorporates recent trends in financial management both at domestic and international levels.
10144 Views
0 Downloads
3.01 MB
BCM 301: PROJECT MANAGEMENT AND PLANNING
Trending!
Detailed notes on project management and panning
9912 Views
2 Downloads
783.54 KB