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 | 1613 |
| 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.
BBM 440 E: STRATEGIC FINANCIAL MANAGEMENT
Trending!
This course enables Students Understand and appreciate why and how strategic financial decisions are made in corporate org
46 Pages
3118 Views
0 Downloads
627.74 KB
Quantitative Techniques for Managers
Trending!
Updated Quantitative Techniques for Managers
14 Pages
3029 Views
0 Downloads
250.79 KB
BBA 100: BUSINESS STUDIES
Trending!
Updated business studies notes
89 Pages
2780 Views
0 Downloads
727.22 KB
BHR 211: FUNDAMENTALS OF HUMAN RESOURCES MANAGEMENT
Trending!
UPDATED FUNDAMENTALS OF HUMAN RESOURCES MANAGEMENT
3281 Views
1 Downloads
600.5 KB
CCS 104 : ELEMENTS OF ECONOMICS NOTES
Trending!
Accounting records are key sources of information and evidence used to prepare, verify and/or audit the financial statements. They also include documentation to prove asset ownership for creation of liabilities and proof of monetary and non monetary transactions. Examples of accounting records are Ledgers, Journals, Bank statements, Contracts and agreements, Verification statements, Transportation receipts, Invoices and Vouchers.
41 Pages
3559 Views
0 Downloads
422.56 KB
COMPUTER NETWORKS
A computer network is a connection of two or more computers using transmission media that can either be wired or wireless with a major purpose of sharing resources.
11 Pages
346 Views
0 Downloads
292.33 KB
INTRODUCTION TO DEVELOPMENT STUDIES AND ETHICS
Trending!
Development studies is an interdisciplinary branch of social science. It has grown in popularity as a subject of study since the early 1990s, and has been most widely taught and researched in the third world and in countries with a colonial history, such as the UK, where development studies originated.
2797 Views
1 Downloads
50.17 KB
STRESS MANAGEMENT
Trending!
In this lesson we will learn about stress, various types of stress, causes of stress, stress
hormones and the stress management techniques.
6 Pages
3470 Views
0 Downloads
151.84 KB
INTRODUCTION TO TOTAL QUALITY MANAGEMENT
Trending!
TQM is defined as both philosophy and a set of guiding principles that represent the foundation of continuously improving organisation. It is the application of quantitative methods and human resources to improve all the process within the organisation and exceed customer needs now and in the future.
3219 Views
2 Downloads
132.41 KB