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 | 6323 |
| 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.
BUCU004: ENTREPRENUERSHIP
Trending!
In this chapter we shall discuss concept of entrepreneurship and innovation, evolution
of entrepreneurship in Kenya, the concept of entrepreneurship culture, the
entrepreneurial cultural practices in Kenya, various theories of entrepreneurship and
the role of entrepreneurship in economic development.
146 Pages
9765 Views
1 Downloads
693.88 KB
INTRODUCTION TO COMPUTER NOTES
Trending!
A computer is a programmable electronic device that accepts raw data as input and processes it with a set ofinstructions (a program) to produce the result as output. It renders output just after performing mathematical and logical operations and can save the output for future use. It can process numerical as well as non-numerical calculations.
56 Pages
9451 Views
1 Downloads
1.72 MB
HPS 2101: PRINCIPLES OF PROCUREMENT
Trending!
Procurement means the acquisition by purchase, rental, lease, hire purchase, license, tenancy, franchise, or by any other contractual means of any type of works, assets, services or goods including livestock or any combination (PPDA, 2005).
264 Pages
11188 Views
3 Downloads
967.01 KB
AMT 514: ELECTION REPORTING
Trending!
Meaning of election reporting; sources of election news, to the media, politicians, the public; problems of election reporting; logistics and costs; safety during elections; how to detect election irregularities; politicians spin, dealing with the spin; NGOs/pressure groups/religious and other organizations.
8726 Views
0 Downloads
145.5 KB
AMT 502: PARLIAMENT REPORTING
Trending!
Whether it has been Hansard – the official record of parliamentary debates or newspaper reports of parliamentary activities and government decisions, the reporting of Parliament has been an important part of the parliamentary story.
7790 Views
0 Downloads
65.5 KB
AMT 513: CRIME AND COURT REPORTING
Trending!
This is the first of three chapters on court and legal reporting. In this chapter we consider why it is important for court cases to be reported, and how to do it safely and properly. In the next chapter we look at how to write reports that are accurate, fair and interesting. In the final chapter we follow a legal case through from beginning to end.
8561 Views
0 Downloads
390 KB
AMT 416: COMMUNICATION AND CORRUPTION
Trending!
The word corruption is derived from Latin word “corruptus” meaning “to break”
9386 Views
0 Downloads
157 KB
AMT 414: REPORTING SCIENCE AND TECHNOLOGY
Trending!
In this chapter, we discuss the challenge facing journalists in reporting science and technology. We advise on the ways of preparing yourself and of using experts to make your task easier. In the following chapter we discuss ways of writing bright, interesting stories and conclude with some solutions to common problem areas.
8195 Views
0 Downloads
159 KB
Business Plan for a Restaurant
Trending!
Bungoma Highway Restaurant is to be situated in Bungoma town, dealing in food production services and sales. The population in the town and its environs will provide market for its products.
9577 Views
0 Downloads
322.5 KB
Lecture Notes On Linear Algebra
Trending!
These are notes, and not a textbook; they correspond quite closely to what is actually said and discussed in class. The intention is for you to use them instead of an expensive textbook, but in order to do this successfully, you will have to treat them differently.
119 Pages
8265 Views
2 Downloads
502.96 KB