INTRODUCTION TO C++ PROGRAMMING YEAR 1

Institution UNIVERSITY
Course BACHELOR OF SCIENCE...
Year 1st Year
Semester Unknown
Posted By stephen oyake rabilo
File Type pdf
Pages 33 Pages
File Size 207.62 KB
Views 1970
Downloads 0
Price: Buy Now whatsapp Buy via whatsapp
  • whatsapp
  • facebook
  • twitter

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.

No preview available
POWER SYSTEM
A protective relay is a device that detects the fault and initiates the operation of the circuit breaker to isolate the defective element from the rest of the system.
126 Pages 759 Views 0 Downloads 5.54 MB
POWER GENERATION AND TRANSMISSION Trending!
Energy exists in different forms in nature but the most important form is the electrical energy. The conversion of energy available in different forms in nature into electrical energy is known as generation of electrical energy.
100 Pages 2946 Views 0 Downloads 4.81 MB
MACHINE UTILIZATION Trending!
A stator consist of the steel frame that encloses a hollow cylindrical core made up of thin laminations of silicon steel to reduce hysteresis and eddy current losses.
124 Pages 3307 Views 1 Downloads 5.78 MB
ELECTRICAL CIRCUIT ANALYSIS Trending!
A circuit diagram can be analyzed by breaking down the schematics of a circuit, simplifying the resistors into one, and applying fundamental laws of physics. There are three main circuit analysis techniques: the fundamental laws, using the node voltage method or the mesh current method.
83 Pages 3063 Views 0 Downloads 4.43 MB
DIGITAL ELECTRONICS
Digital electronics Digital electronics is a field of electronics involving the study of digital signals and the engineering of devices that use or produce them. This is in contrast to analog electronics which work primarily with analog signals.
102 Pages 357 Views 0 Downloads 4.56 MB
ELECTRONICS NOTES
Electronics is a scientific and engineering discipline that studies and applies the principles of physics to design, create, and operate devices that manipulate electrons and other electrically charged particles.
47 Pages 464 Views 0 Downloads 2.56 MB
Principles of electrical machines Trending!
An electric generator is a machine that converts mechanical energy into electrical energy. An electric generator is based on the principle that whenever flux is cut by a conductor, an e.m.f. is induced which will cause a current to flow if the conductor circuit is closed. The direction of induced e.m.f. (and hence current) is given by Fleming’s right hand rule.
317 Pages 4203 Views 0 Downloads 13.12 MB
HE/CU/TT/CC/05/6/A: APPLICATION OF MEDICAL–LEGAL ETHICS
This unit specifies the competencies required to apply medical legal ethics in PERIOPERATION THEATRE TECHNOLOGY. It involves acquiring knowledge on the medical-legal and ethical issues, applying medical-legal ethics, and liaising with law enforcement team. It also involves documenting medical legal & ethical issues in PERIOPERATION THEATRE TECHNOLOGY.
26 Pages 1180 Views 5 Downloads 838.35 KB
SZL 2350 VIRAL GENETICS
Complete lecture notes on viruses under viral genetics.
11 Pages 1568 Views 0 Downloads 179.71 KB
Nosocomial infection
Helps a student understand the infection occurring in a patient
30 Pages 762 Views 0 Downloads 797.15 KB