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 | 4772 |
| 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.
Media Law
Trending!
What is Law?
Law is therefore a set of rules and customs that regulate orderly conduct of affairs in society. Law is a system of rules a society sets to maintain order and protect harm to persons and property. It is a set of rules and principles intended to guide conduct in society, primarily by protecting persons and their property facilitating persons and commercial interactions, and providing mechanisms for dispute resolution.
2291 Views
6 Downloads
49.83 KB
UCI: DATA SECURITY AND CONTROL
Trending!
Data & Information must be protected against unauthorized access, disclosure, modification or damage. This is because; it is a scarce & valuable resource for any business organization or government. It is mostly used in transactions, it can be shared, and has high value attached to it.
10557 Views
0 Downloads
177 KB
FORMAT FOR WRITING A PROJECT REPORT
Trending!
What are Project-based examinations?
Projects are used in assessing the outcomes of learning.
In Project-based examinations, candidates demonstrate that they can transform processes into actions by solving a real-world problem in a real organization, and for each subject of study, document the same using a standard format.
10870 Views
3 Downloads
97.5 KB
MICROSOFT WORD NOTES
Trending!
It is a Word processing program. It helps in creating professional-looking documents that can be printed, e.g., letters, reports, memos, essays, projects, books, etc,.
11596 Views
4 Downloads
895.5 KB
MICROSOFT EXCEL NOTES
Trending!
A Spreadsheet is a ledger sheet that lets the user enter, edit, and manipulate numerical data. A Spreadsheet usually consists of a series of rows & columns in which data entries can be made.
10625 Views
6 Downloads
551.5 KB
INTERNET & EMAIL NOTES.
Trending!
Why Study about the Internet? To understand what the Internet is, the services that it offers, what is required in order to get connected, as well as to establish a connection and log out of the Internet.
9981 Views
0 Downloads
520 KB
MICROSOFT ACCESS NOTES
Trending!
Ms-Access is a Window-based program used to manage information, which is in form of databases. It helps in storing information about different subjects in separate tables. It also enables the user to add and edit records, sort, query and also print records.
11347 Views
0 Downloads
292 KB
ADOBE PAGEMAKER NOTES
Trending!
Adobe PageMaker is a Desktop Publishing program that can be used to set page-layout text design using a Personal Computer (PC). It helps one produce professional-looking publications.
11012 Views
2 Downloads
640 KB
MICROSOFT POWERPOINT NOTES
Trending!
PowerPoint is most useful for creating formal presentations. PowerPoint can help you produce professional looking presentations that can be printed on OHP transparencies, viewed on a computer display or produced as a slide, together with printed notes for your audience to take away for reference.
11065 Views
6 Downloads
317 KB
HTML NOTES
Trending!
Approach taken assumes no prior knowledge on the part of the student. However, the learner should know something about design – think about and choose what resources you want to make available on the Web and why. Design is making things look appropriate for their surroundings (attractive). It is a sense of proportion and balance. If you can arrange a room or a vase of flowers then you have no trouble seeing what looks good and what doesn’t. Please yourself first!
9399 Views
0 Downloads
281.5 KB