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 | 2025 |
| 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.
Financial Accounting Q&A Revision Kit
Trending!
Download a copy of the Financial Accounting Q&A Revision Kit, The booklet contains Questions from past papers and their Comprehensive Answers. This revision partner will be ideal in your assignments and exam preparations.
168 Pages
4240 Views
0 Downloads
646.15 KB
OPERATIONS RESEARCH NOTES
Operations Research has gained wider acclaim in the modern complex business world. For every complex problem of an industry today, well defined Operations Research tools are the solace.
308 Pages
1643 Views
0 Downloads
3.7 MB
Equity Investments Analysis Revision Kit
Trending!
Download a copy of the Equity Investments Analysis Revision Kit, The booklet contains Questions from past papers and their Comprehensive Answers. This revision partner will be ideal in your assignments and exam preparations.
77 Pages
3846 Views
2 Downloads
48.67 MB
Financial Mathematics Past Papers
Grab a copy of Financial Mathematics past papers for purposes of your exam preparations and practice.
38 Pages
398 Views
0 Downloads
1.64 MB
MANAGEMENT INFORMATION SYSTEMS NOTES
Trending!
Management Information System is an old management tool, which has been long used by people for better management and scientific decision-making.
272 Pages
2850 Views
0 Downloads
3.04 MB
CONSUMER BEHAVIOUR NOTES
Trending!
Consumer behavior is a rapidly growing discipline of study. It means more than just how a person buys products.
208 Pages
2240 Views
0 Downloads
6.28 MB
SALES AND PROMOTIONS MANAGEMENT NOTES
Before the industrial revolution the marketing task was relatively simple because the economic scene was dominated by small scale enterprises. The only problem was to produce goods for consumers which were sold out without any difficulty.
164 Pages
180 Views
0 Downloads
16.93 MB
Financial Mathematics Study Notes
Download a copy of the Financial Mathematics study kit to enable you comprehend the course unit into finer details and also help you in preparing for KASNEB examinations.
175 Pages
355 Views
0 Downloads
2.85 MB
SALES AND PROMOTIONS MANAGEMENT NOTES PART 2
Trending!
Before the industrial revolution the marketing task was relatively simple because the economic scene was dominated by small scale enterprises. The only problem was to produce goods for consumers which were sold out without any difficulty.
95 Pages
2454 Views
0 Downloads
9.68 MB
Product and Brand Management notes
Trending!
Product Management is becoming an important function of marketing. With the passage of
time, product management has undergone many changes. It is no more a department of churning
out promotional materials but is has now become the nerve center of the organization.
316 Pages
2524 Views
0 Downloads
2.39 MB