Skip to main content

HomePage

INTRODUCTION - 

In this page I will be introducing the syllabus of the this blog that we will be covering.

Through this blog, we will be covering almost every topic related to C++ i.e. even if you are not familiar with C++ till now, you can start from very basic or if you find any specific topic difficult in C++, you can directly jump to that topic and read it.

All the topics are provided with bunch of examples and code snippets, so that, you can remove all the confusions in your mind.


List of topics - 

  1. Introduction to Computer Science - Here we will see what is computer and other necessary basic information that every programmer should have an idea about. We will discuss the following things -
    • What is computer and How it works?
    • What is Program and Operating System?
    • Low Level Language v/s High Level Language.
    • Difference between compiler and interpreter.
  2. Number Systems - Here, we will learn what are Number systems, and introduce ourselves to various number systems and see how these number systems can be converted from one Number system to another, List of Number systems - 
    • Decimal Number System.
    • Binary Number System.
    • Octal Number System.
    • Hexadecimal Number System.
  3. Algorithms, Pseudocodes and Flowcharts - Here we will try to answer these three question -
    • What is Algorithm?
    • What is Pseudocode?
    • What is Flowchart?
  4. Creating Our First C++ Program - Here we will discuss following topics -
    • First we will see how to create a ".cpp" file.
    • We will discuss the essential steps involved in compiling the C++ file, and how it is converted from ".cpp" file to "bytecode".
    • At last we will see the command line execution of our C++ program.
  5. Data Types - Here we will introduce ourselves to -
    • Built-in Datatypes like integer, character, float etc.
    • Derived Datatypes like pointers, references etc.
    • User-Defined Datatypes like classes, structures etc. We will only be introducing the classes, but we will be covering them in lot more details int he later sections.
  6. Expression and Operators - 
    • We will define, what an expression is.
    • After that we will be covering the operators topic by answering these questions -
      • What are Unary Operators?
      • What are Binary Operators?
      • What is Ternary Operator?
  7. Decision Making Statements - Here we will learn about -
    • if statements.
    • if-else statements.
    • if-else ladder.
    • switch statements.
  8. Loops Statements - Here we will learn about -
    • for loop.
    • while loop.
    • do-while loop.
  9. Practice session #1 -
    • This section will contain some problems related to the topics that we discussed above. The Solution to the problem will also be provided.
  10. Pointers - 
    • In this section we will give in-depth explanation of pointers from it's declaration to it's flaws and also discuss smart pointers.
  11. C-Style Strings v/s String class - In this section, we will try to learn these things
    • What are C-Strings and String class objects.
    • The pros and cons of both.
    • The advantage of one over another.
    • The algorithms that can be used on each of the given.

Comments

Popular posts from this blog

Introduction to Computer Science.

 Before directly jumping deeply in c++, let's first start by creating the roots of computer science. In this post we will answer the following question. What is Computer and How it works? What is Program and Operating system? Low Level vs High Level Language? Compiler v/s Interpreter? By Knowing All these basic concepts You will be able to understand the upcoming more complex concepts easily. Let's start answering the above questions. What is Computer and How it works? What is computer? If I answer briefly,  what is computer?  then it is just a calculator used for doing simple calculations. If I have to answer where is computer used?, then I could probably say everywhere. We are surrounded by computer, for example mobile, smartwatches, and personal computer (obviously).  The below image is the first mechanical computer that we used for calculation.                                   ...

C++ Built-in Data types.

Before diving into definition of various Data Types, let's first discuss something about memory. Below is the block diagram of memory(ram) where all the data is temporarily stored before execution. Memory. The lower area of this diagram is referred as Low Memory address and upper area of this diagram is referred as High Memory address. Now let's briefly discuss each of the segments, one by one. Code Segment - The segment of memory where the text or code or your file is stored temporarily is referred as code segment. For example the main function, the function that we defined etc. Data Segment  - Data segment is of two types  Initialized data segment or simply data segment - The variables that are declared and initialized in our program are stored here. Uninitialized data segment .- The variables that are just declared or have value zero and not in use are stored here. Heap - Heap is a storage where generally dynamic memory allocation takes place with the help of pointers. If...

Pointers.

I have already introduced pointers in the C++ Derived Data Types post , But, here I will be showing some practical examples and at the end of this slide, you will be understanding pointers like they are, obvious to you. So, let' start by reminding you the basic syntax :- <data type> *<name_of_pointer> ; Below is the simple program for pointer declaration and initialization. #include<iostream> using namespace std; int main (){ int a = 20 ; int *b; // Declaration of pointer b b = &a; // Initialization of pointer b (& is used to extract the address of a) int *c = b; // Initialization of pointer c to pointer b cout << a << endl << b << endl << c << endl; } Okay, after reminding the basic syntax of pointers, you have to memorize the reason why we generally use pointers, I have already discussed that also, but, let me briefly describe it. One of the memory section in our Comp...