C++ Virtual Base Class

Take a situation where all the three types of inheritance, multiple, multilevel and hierarchical inheritance are used together. This situation is illustrated in the below image. The child has two base classes parent1 and parent2 and these two have a common base class grandparent. All the public and protected members of grandparent are inherited into …

C++ Virtual Base Class Read More »

Code::Blocks 12.11: How to Compile and Run C/C++ Programs? [Video]

In the below video I have mentioned that how you can write, run and compile C/C++ program using Code::Blocks IDE. Just visit below link to download Code::Blocks for free.https://www.thecrazyprogrammer.com/2013/06/gcc-compiler-download-codeblocks-1211.html Also Read: Download Turbo C++ for Windows 8 for Free Also Read: How to Write and Run C/C++ Programs in Ubuntu (Linux)

C/C++ TIC-TAC-TOE GAME

This is the main code of my C/C++ TIC-TAC-TOE GAME using the boolean algorithm without calculating all the probability. Using the rand() function to maintain the IA and forcing to play some cases with a chance of 99% , the other 1% is to make the game dynamic (realistic). Custom Cursor Algorithm by using simple …

C/C++ TIC-TAC-TOE GAME Read More »

C++ Templates: Program to Swap Two Numbers Using Function Template

What are Templates in C++? Templates help in defining generic classes and functions and hence allow generic programming. Generic programming is an approach where generic data types are used as parameters and the same piece of code work for various data types. Function templates are used to create family of functions with different argument types. …

C++ Templates: Program to Swap Two Numbers Using Function Template Read More »