Posts

Showing posts from August, 2020

THE BASICS: C++ PROGRAMMING LANGUAGE

Image
UNDERSTANDING A SIMPLE C++ PROGRAM #include <iostream> using namespace std; int main() { cout << "hello world" << endl; return 0; } ** This program above prints out "hello world" when it is compiled and executed. Iostream - Input Output stream Function: It declares a set of functions for the standard input output.  It also defines I/O of cin,cout. Cout - A predefined object of Iostream class Std - A namespace which is used to group data to prevent name conflicts with others with the same name. Main() - A special function that is called when the program is compiled and run Return 0; - Returns the 0 value to previous function  Std::cout - used to call the cout object in the namespace standard VARIABLES Variables are quantities that may change within the context of a mathematical problem or experiment.  With this in mind, variables use single letter to represent it.  The letters x, y, z are common letters used to represent variables. In other wo...

INTRODUCTION TO DATA STRUCTURE - A SHORT PREVIEW

DATA STRUCTURE There is a whole idea of explaining the term 'DATA STRUCTURE'.   GeeksforGeeks says that Data Structure is a particular way of organizing data in a computer so that it can be used effectively. According to Wikipedia , data structure is a data organization, management and storage format that enables efficient access and modification.  More precisely,  a data structure is a collection of data values, relationships among them and the functions and operations that can be applied to data. According to SearchSQLServer , data structure is a specialized format for organizing, processing, retrieving and storing data.  Eventhough there are several basic and advanced structure types, any data structure is designed to arrange data to suit the specific need. According to studytonight , data structure is a way of collecting and organizing data in such a way that we can perform operations on these data in an effective way. APPLICATION OF DATA STRUCTURES ...

C++ VIDEOS FOR BEGINNERS / INTERMEDIATE

Image
HOW TO USE PRINTF IN C++ DIFFERENCES BETWEEN C & C++ WHAT IS A BINARY TREE? HOW TO USE INSERTION OPERATION IN LINKED LISTS? DIFFERENCES BETWEEN LINKED LISTS AND ARRAY A SIMPLE LINKED LIST WITH 3 NODES PROGRAM IN C++ 3 MINUTES VIDEO ON LINKED LISTS IN C++ HOW TO IMPLEMENT LINKED LIST IN C++ USING STRUCT?   INTRODUCTION TO LINKED LIST IN C++ HOW TO USE STRUCTURE IN C++?   INTRODUCTION TO CLASSES IN C++              INTRODUCTION TO OBJECTS IN C++ MORE NOTES ON C++ PROGRAMMING IN C++ - CHOICE STATEMENTS Subscribe to our How to Tutorials More videos on programming

THE Big-O Notation & TIME COMPLEXITY.... Algorithm Analysis

There are various ways to design a particular algorithm.  Certain algorithm takes a little time to execute, whereas others take a considerable amount of time to execute. Algorithm is a set of instructions for solving some problem, step by step.  Well, algorithms are normally executed by computers. An algorithm is a procedure or formula for solving problems. WATCH A VIDEO ON ALGORITHM

COMPUTER SCIENCE: YOU MUST KNOW THE SOFTWARE DEVELOPMENT PHASE

  SOFTWARE DEVELOPMENT PHASE Software engineers break the software development process into the following 4 phases: Analysis Design  Implementation Testing and Debungging ANALYSIS It is very important to analyse a problem first.  This can be achieved by first understanding the problem requirements.  Requirements include whether the program requires interaction with the user, whether it manipulates data, whether it produces output and what the output looks like. Scenario:  Let's say you decided to develop a program to make automated teller machine (ATM) operational. Analysis: Determine the functionality of the machine.  This includes the necessary operations performed by the machine - withdraw money, deposit money, transfer money, check account balance and etc... During this phase, it is advisable to speak with potential customers who would like to use the machine.  It is important to also make the machine user-friendly. Important.... If the program man...

COMPUTER SCIENCE: YOU NEED TO KNOW DATA STRUCTURE...EXPLAINED

Image
DATA STRUCTURES Data Structure refers to data organization, management and storage format. FIND OUT MORE ABOUT -  WHAT IS AN ALGORITHM? HOW CLASSES ARE IMPLEMENTED IN C++? In OOD, the first step is to identify the components called objects; an object combines data and operation in a single unit, called encapsulation.   In C++, the mechanism that allows you to combine data and operations in a single unit is called a class.  A class is a collection of a fixed number of components.  The components of a class are called the members of the class. syntax to define class: class classIdentifier {          class members list }; * If a member of a class is a variable, you declare it. In the definition of a class, you cannot initialize a variable when you declare it. In C++, class is a reserved word and it defines only a data type. No memory is allocated. It announces the declaration of a class.  **There is a semicolon(;) after the right bra...

Who are we?

Image