Get the address Note that void* is a "pure" address which doesn't carry the type information anymore. If you need the type information (e.g. to recov
Continue ReadingC++ Questions
[pt_view id="6491efea00"]
Continue ReadingC++: Delegate Behavior to Derived Classes
INTENT Delegate behavior to derived classes without incurring the cost of run-time polymorphism. DESCRIPTION With the Curiously Recurring Tem
Continue ReadingC++: N-Queens Problem
Solve the eight queens puzzle. You can extend the problem to solve the puzzle with a board of side NxN. For the number of solutions for small value
Continue ReadingC++: Monty Hall Problem
Run random simulations of the Monty Hall game. Show the effects of a strategy of the contestant always keeping his first guess so it can be contrasted
Continue ReadingC++ Full Course Lesson 4: Variables
https://www.youtube.com/watch?v=QwBSv4-_Lmk&list=PLAE85DE8440AA6B83&index=4
Continue ReadingC++: Downward For Loop
Write a for loop which writes a countdown from 10 to 0. for(int i = 10; i >= 0; --i) std::cout << i << "\n"; SOURCE Con
Continue ReadingC++: Globally Replace Text in Several Files
The task is to replace every occurring instance of a piece of text in a group of text files with another one. For this task we want to replace the tex
Continue ReadingC++: Flipping Bits Game
The game Given an N by N square array of zeroes or ones in an initial configuration, and a target configuration of zeroes and ones The task
Continue ReadingC++: File Size
In this task, the job is to verify the size of a file called "input.txt" for a file in the current working directory and another one in the file syste
Continue Reading




