home
Steps of Problem Solving

Lorem ipsum dolor sit amet consectetur adipisicing elit. Neque esse, dolorem architecto quod quos ab maxime ut laudantium vel modi qui sint, vero expedita impedit dignissimos saepe sit aliquid doloribus!

  1. Problem Analysis

    you gotta analyze the problem bro. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Doloremque perferendis animi assumenda aspernatur exercitationem nobis quis totam aperiam, eaque rem cumque atque sapiente, amet sint temporibus natus pariatur quos! Hic?

  2. Program Design

    Design the program and break it into micro steps. Lorem ipsum dolor sit amet consectetur, adipisicing elit. Expedita minus laboriosam iusto animi, eius necessitatibus sequi minima fugiat doloribus aperiam similique temporibus sapiente laudantium autem corrupti tempora fugit numquam veniam!

  3. Program Development

    code it down bro. code code and code. Lorem ipsum dolor sit, amet consectetur adipisicing elit. Atque autem maiores accusantium ea doloremque quae ad, aperiam odit. Provident deleniti cupiditate voluptate voluptatem architecto alias facilis reiciendis consequatur amet aut?

  4. Program Testing & Debugging

    make a list of test scenarios and test your program. If you face any problem then solve it. Lorem ipsum dolor sit amet consectetur adipisicing elit. Natus sapiente nihil placeat similique officiis voluptates soluta unde magni? Libero eius praesentium totam vel quidem modi repudiandae! Optio in vel obcaecati.

  5. Program Maintenance

    Getting a bug free program isn't the last step. you should update your program time to time. Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam maxime ad recusandae dolorum eligendi delectus aperiam iste facere enim alias optio sint placeat illum unde voluptatum necessitatibus, velit maiores. Unde.

Intro to C++

C++ is a popular programming language. C++ is used to create computer programs, and is one of the most used language in game development.

  • What is C++?

    C++ is a cross-platform language that can be used to create high-performance applications. C++ was developed by Bjarne Stroustrup, as an extension to the C language. C++ gives programmers a high level of control over system resources and memory. The language was updated 4 major times in 2011, 2014, 2017, and 2020 to C++11, C++14, C++17, C++20.

  • Why Use C++

    C++ is one of the world's most popular programming languages. C++ can be found in today's operating systems, Graphical User Interfaces, and embedded systems. C++ is an object-oriented programming language which gives a clear structure to programs and allows code to be reused, lowering development costs. C++ is portable and can be used to develop applications that can be adapted to multiple platforms. C++ is fun and easy to learn! As C++ is close to C# and Java, it makes it easy for programmers to switch to C++ or vice versa.

  • Difference between C and C++

    C++ was developed as an extension of C, and both languages have almost the same syntax. The main difference between C and C++ is that C++ support classes and objects, while C does not.

  • Simple code to get started

    int main() {
    cout << "I just got executed!";
    return 0;
    }
C++ Functions

A function is a block of code which only runs when it is called. You can pass data, known as parameters, into a function. Functions are used to perform certain actions, and they are important for reusing code: Define the code once, and use it many times.

  • Function Declaration and Definition

    A C++ function consist of two parts: Declaration: the return type, the name of the function, and parameters (if any) Definition: the body of the function (code to be executed)

    void myFunction() { // declaration
    // the body of the function (definition)
    }
  • Call a Function

    Declared functions are not executed immediately. They are "saved for later use", and will be executed later, when they are called. To call a function, write the function's name followed by two parentheses () and a semicolon ; In the following example, myFunction() is used to print a text (the action), when it is called:

    // Create a function void myFunction() {
    cout << "I just got executed!";
    }

    int main() {
    myFunction(); // call the function
    return 0;
    } // Outputs "I just got executed!"
C++ OOP

OOP stands for Object-Oriented Programming. Procedural programming is about writing procedures or functions that perform operations on the data, while object-oriented programming is about creating objects that contain both data and functions. Object-oriented programming has several advantages over procedural programming:

  • OOP is faster and easier to execute
  • OOP provides a clear structure for the programs
  • OOP helps to keep the C++ code DRY "Don't Repeat Yourself", and makes the code easier to maintain, modify and debug
  • OOP makes it possible to create full reusable applications with less code and shorter development time
Advice from somebody that you used to know
Get proper sleep.
Focus on the positive side