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 | 1675 |
| 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.
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
2487 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
2204 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
3018 Views
0 Downloads
1.67 MB
GENERAL SURVEY
Trending!
This course contains slide notes on general survey of a patient
2522 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
3479 Views
2 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.
3059 Views
0 Downloads
3.01 MB
BCM 301: PROJECT MANAGEMENT AND PLANNING
Trending!
Detailed notes on project management and panning
3557 Views
1 Downloads
783.54 KB
BASIC CONCEPTS OF COMPUTER
Trending!
This course contains the characteristics of computers, identifys its basic components, explains the importance of various units of a computer and differentiates between system software and application software
32 Pages
3067 Views
0 Downloads
1.25 MB
NURS 171: Community Health
This course discusses the concepts of the family and the family health practice, it describe the role of the community health practitioner and states the conceptual models in community health
99 Pages
266 Views
0 Downloads
1.15 MB
AMT 104: HUMAN COMMUNICATION
Trending!
Communication is the process that increases commonality among people but also requiring elements of commonality in order to occur.
3116 Views
0 Downloads
23.35 KB