C/C++

Learning LOOPS in C

In this part you will learn: 1. What is a loop 2. For LOOP 3. More on conditional statements 4. C syntax 5. Showing output In this tutorial I will teach you how to make a calculator using two different ways, firstly using the Conditional statement method and then using switch statement. What is a LOOP ? A loop is simply a statement which can execute a set of defined statements repetitively. You can write any valid C statement within a loop and you can also set how many times to execute that certain statement. There are three parts in a loop 1.

Calculator using Switch and Conditional Statements

Calculator using Switch and Conditional Statements In this part you will learn: 1. To make a calculator using Conditional statements 2. What is switch statement 3. To make a calculator using switch statment 4. C syntax 5. Showing output In this tutorial I will teach you how to make a calculator using two different ways, firstly using the Conditional statement method and then using switch statement. Using Conditional statments: Basic Step: Open Dev C++ then File > new > source file and start writing the code below.

Writing your first C program

Writing your first C program

In this part you will learn: 1. C syntax 2. Showing output 3. Tabs and new lines 4. Headers 5. Variables and data types In this tutorial I will teach you how to write your first c program. Writing your first C program: NOTE: Whenever I write something after // or in between /* */ it means I am writing comments. Comments are not read by the compiler they are just a way to write your own notes after some statement.

Understanding headers, variables and functions

Understanding headers, variables and functions

In this part you will learn: 1. Pseudo code 2. Headers 3. Functions 4. Variables and data types In this tutorial I will teach you the basic stuff that is need for programming in c. First thing to learn is pseudo code. Pseudo code: When you want to start coding a problem the first thing before writing an algorithm is to write the solution of the problem that is in your mind in simple English. Pseudo code has no specific pattern it’s just a way to writing the solution of the problem in simple English.

Setting up the IDE for programming in C

Setting up the IDE for programming in C

In this part you will learn: 1. IDE 2. Compiler 3. Setting up the DEV C++ environment Today we are going to start a 15day series of learning C language. In these tutorials I will teach you from the most basic to some advance stuff. First and the most basic step to start coding is to setup and IDE ( Integrated Development Environment ) sounds a little bit complicated but it really isn’t.

Learn C in 15 Days

C language is one of the most basic and easy to learn language. It provides a gateway for entering into the programming world. C language covers all the basic concepts of programming and helps you learn structured programming practice which is the base for learning object oriented programming. In this book we will first learn the syntax and then cover the important topics which are needed for programming in all the languages like conditional statement, loops , arrays , functions , file handling ,structures etc. Whenever you want to give any suggestion feel free to comment.

How To Use Pointers In C Plus Plus (CPP) (C++)

Introduction: This tutorial is on how to use Pointers in C++. Theory: So why exactly do we need to use pointers? And what are they? If you write a simple program with two functions and a variable where one of the functions parses the variable to the second function in order for the variables value to change, it will only change in the local scope of the second function. Here is an example;