Category: Getting Startes with C++

Getting Startes with C++

Introducing Classes

Introducing Classes

In C++ we define our own data structure by defining a class. The class mechanism is one of the most important features in C++. In fact, a primary focus of the design of C++...

Control Structures

Control Structures

Statements execute sequentially: The first statement in a function is executed first, followed by the second, and so on. Of course, few programs including the one we’ll need to write to solve using only...

Comments in C++

Comments in C++

Comments help the human readers of our programs. They are typically used to summarize an algorithm, identify the purpose of a variable, or clarify an otherwise obscure segment of code. Comments do not increase...

Using Input Output a little

Using Input Output a little

C++ does not directly define any statements to do input or output (IO). Instead, IO is provided by the standard library. The IO library provides an extensive set of facilities.   Standard Input and...

C++ Hello World

C++ Hello World

Every C++ program contains one or more functions, one of which must be named main. A function consists of a sequence of statements that perform the work of the function. The operating system executes...