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 | 5071 |
| 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.
CORPORATE GOVERNANCE AND ETHICS NOTES
Trending!
Corporate governance is a central and dynamic aspect of business. The term ‘governance’ is
derived from the Latin word gubernare, meaning ‘to steer’, usually applying to the steering of a
ship, which implies that corporate governance involves the function of direction rather than
control.
285 Pages
4385 Views
0 Downloads
1.76 MB
DATABASE MANAGEMENT SYSTEMS NOTES
Trending!
The information storage and retrieval has become very important in our day-to-day life. The old era of manual system is no longer used in most of the places.
264 Pages
7692 Views
0 Downloads
2.44 MB
OBJECT ORIENTED PROGRAMMING NOTES
Trending!
Programming practices have evolved considerably over the past few decades. As more and more programmers gained experience problems unknown hitherto, began to surface.
357 Pages
6136 Views
0 Downloads
4.35 MB
Software Project Management Notes
Software project management includes the tools, techniques, and knowledge essential to deal with the growth of software products. In Software Project Management, the end users and developers require to know the cost of the project, duration and length. It is a process of managing, allocating and timing resources to develop computer software that meets necessities.
328 Pages
1446 Views
0 Downloads
6.37 MB
INFORMATION SECURITY AND PRIVACY NOTES
Trending!
Information System is a particular discipline or branch of learning that is concerned with the application of information to organizational needs.
241 Pages
8424 Views
0 Downloads
3.82 MB
Enterprise Resource Planning Notes
Trending!
ERP systems are now ubiquitous in large businesses and the current move by vendors is to repackage them for small to medium enterprises (SMEs).
232 Pages
4745 Views
0 Downloads
4.82 MB
CIFA: Corporate Finance Q&A Revision Kit
Trending!
Download a copy of the Corporate Finance 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.
79 Pages
8196 Views
1 Downloads
63.94 MB
CIFA: Economics Revision Q&A Blocks
Trending!
Download a copy of the Economics Revision Q&A Blocks, The booklet contains Questions from past papers and their Comprehensive Answers. This revision partner will be ideal in your assignments and exam preparations.
323 Pages
7638 Views
1 Downloads
5.22 MB
CIFA/CPA: Economics Q&A Revision Kit
Trending!
Download a copy of the Economics 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.
681 Pages
8006 Views
1 Downloads
4.43 MB
Entrepreneurship & Communication Skills Revision Kit
Trending!
Download a copy of the Entrepreneurship & Communication Skills 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.
171 Pages
7727 Views
1 Downloads
4.11 MB