Posts

Generalised Linked List (GLL)

Image
So, in this series of blogs, now, coming to the course project, we have implementation of Family tree using Generalized Linked List So, what actually is a Generalized Linked List or a GLL? Firstly, we need to know what a general list is. A generalized list ‘ A’ is defined as a finite sequence of elements (or data containers), where ‘A’ is either an atom or a list. The elements ‘ A i ’, where, 0 ≤ i ≤ n-1, are said to be the sub lists of ‘A’ , that are not atoms of ‘ A’ . Using this definition further in our programming domain makes this concept to be called as Generalised Linked List, a further extension to the concept of Linked Lists. Linked List was constrained in only one direct with one ‘next’ pointer, thus making its operations or applications limited. In GLL, there’s relaxation on the restriction that the list is linear. So, a basic structure if the GLL consists a ‘next’ pointer, as well as a ‘down’ pointer, which enables the former Linked List to crea...

Type Casting And Cast Operators in C++

              Typecasting, or type conversion, is a method of changing an entity from one data type to another. It is used in computer programming to ensure variables are correctly processed by a function. An example of typecasting is converting an integer to a string. Example:                short int my_short = -10;         int my_int = (int)my_short;             (This converts or type casts ‘short int’ my_short variable into ‘int’) There are primarily 2 types: 11)   Implicit Type Casting             This casting happens without your effort and is generally done in order to simplify coding and its execution is automatic. There are two common forms of this- numeric conversions, where two numbers of different types are use...

Delving into C++

Commenced as a part of our curriculum, we, TY E&TC students of VIT, Pune have started this activity. Till now, we have seen the most basic concepts encompassing the Object-Oriented nature of C++. In this continuation to series of our blogs, we’ll take a deep dive into more of the different types of techniques allowed to us by this promising programming language. To start with, we have an amazing concept of Data Binding in C++. It’s of two types: ·        Static Data Binding                             ·        Dynamic Data Binding ‘Binding’ refers to the concept of assigning one thing to another. When a function is called by a program in C++, the execution handler, during the compile time, binds the program control to the memory address where the function is defined. Let’...

Why use C++

C++ is known to be a very powerful language. C++ allows you to have a lot of control as to how you use computer resources, so in the right hands its speed and ability to cheaply use resources should be able to surpass other languages. Thanks to C++'s performance, it is often used to develop game engines, games, and desktop apps. Many AAA title video games are built with C++. Very Complex Since C++ is rather lower level, the language is huge and you will need to handle a lot of complex things such as memory management and more. You also need to write a lot of code before you can get a working prototype if you're planning on building an app from scratch. Since it will be difficult to grasp how all features in C++ works, you can easily shoot yourself in the foot. As such, since it's easy for a coding beginner to go astray when learning C++, we strongly recommend learning C++ with a mentor. In addition, C++ has a longer history with game development in general, so th...