c-logo

Learn programming with C++ : Logical Operations

Previous Post: Learn programming with C++ : Mathematical Operations The most common statement in C++ is the expression. Most expressions involve the arithmetic operators, such as addition (+), subtraction (–) and multiplication (*). But there is a whole other class of operators, known as the logical operators. Logical operators fall into two types. The AND and … Continue reading Learn programming with C++ : Logical Operations

c-logo

Learn programming with C++ : Mathematical Operations

Previous Post Link: Learn programming with C++ : Constants C++ offers all the common arithmetic operations: C++ programs can multiply, add, divide, and so forth. Programs have to be able to perform these operations to get anything done. C++ operations look like the arithmetic operations you would perform on a piece of paper, except you have to declare … Continue reading Learn programming with C++ : Mathematical Operations

c-logo

Learn programming with C++ : Constants

Previous Post Link: Learn programming with C++ : Variables In C++ a constant value is an explicit number or a character (such as 1, 0.5, or ‘c’) that doesn’t change. As with variables, every constant has a type. In an expression such as n = 1; the constant value 1 is an int. To make 1 a … Continue reading Learn programming with C++ : Constants

c-logo

Learn programming with C++ : Variables

Previous Post Link: Learn programming with C++ : Comment out your source code The most important of all concept in C++ programming is variable. Variable is a small container or box for storing data or values. You can store value or data for later use in your application. The concept of a variable is borrowed from mathematics. … Continue reading Learn programming with C++ : Variables

c-logo

Learn programming with C++ : Comment out your source code

Previous Post Link: Learn programming with C++ : Output or display text The first few lines in the code and image above appear to be free form text. These lines are known as comments. Comments are the programmer’s explanation of what he is doing or thinking when writing a particular code segment. The compiler ignores comments. It’s a good … Continue reading Learn programming with C++ : Comment out your source code

c-logo

Learn programming with C++ : Output or display text

Previous Post Link: Learn programming with C++ : Create your first program Its most important in any program language to output results or other type of data on screen. Every programming language has its own syntax and language construct to accomplish this task. Today I will show you how to output “Hello World!” using C++. First … Continue reading Learn programming with C++ : Output or display text

c-logo

Learn programming with C++ : Create your first program

Previous Post Link: Learn programming with C++ : Install Code::Blocks The first step to creating a C++ program is to create what is known as a project. A project tells Code::Blocks the names of the .CPP source files to include and what type of program to create. How to create a project? Start up the Code::Blocks tool. … Continue reading Learn programming with C++ : Create your first program

c-logo

Learn programming with C++ : Install Code::Blocks

If you didn’t read the previous article, here it is Learn programming with C++ : Introduction As we talked earlier, we need an IDE and compiler to write c++ codes and compile it. We will use code::blocks IDE with minGW compiler. First of all we need to download code::blocks from here,  http://www.codeblocks.org/downloads/26 Download “codeblocks-13.12mingw-setup.exe” from the link as … Continue reading Learn programming with C++ : Install Code::Blocks

c-logo

Learn programming with C++ : Introduction

What Is C++ Programming? C++ (pronounced as cee plus plus) is a general-purpose programming language. It has imperative, object-oriented and generic programming features, while also providing facilities for low-level memory manipulation. It is designed with a bias toward system programming and embedded, resource-constrained and large systems, with performance, efficiency and flexibility of use as its design … Continue reading Learn programming with C++ : Introduction