A tourist wants to make a good trip at the weekend with his friends. They will go to the mountains to see the wonders of nature, so he needs to pack w
Continue ReadingC++: Sort a Range of Elements
On line 8, we create a std::array of ints that we wish to sort. On line 10, we call the standard alrogithm std::sort, which sorts the range of elem
Continue ReadingC++: Swap Values
On lines 6–7, we create two std::string objects whose values we wish to swap. However, this sample will also apply to any other swappable type. O
Continue ReadingC++: What is the name of the “–>” operator?
After reading Hidden Features and Dark Corners of C++/STL on comp.lang.c++.moderated, I was completely surprised that it compiled and worked in both V
Continue ReadingC++: Box the Compass
Avast me hearties! There be many a land lubber that knows naught of the pirate ways and gives direction by degree! They know not how to box the com
Continue ReadingC++: Last Friday of Each Month
Write a program or a script that returns the last Fridays of each month of a given year. The year may be given through any simple input method in y
Continue ReadingC++ Full Course Lesson 5: Creating a Basic Calculator
https://www.youtube.com/watch?v=yjucJUsHSqg&list=PLAE85DE8440AA6B83&index=5
Continue ReadingC++: Munching Squares
Render a graphical pattern where each pixel is colored by the value of 'x xor y' from an arbitrary color table. #include <windows.h> #
Continue ReadingC++: Generate Lower Case ASCII Alphabet
Generate an array, list, lazy sequence, or even an indexable string of all the lower case ASCII characters, from 'a' to 'z'. If the standard librar
Continue ReadingC++: Hello World Web Server
The browser is the new GUI ! The task is to serve our standard text "Goodbye, World!" to http://localhost:8080/ so that it can be viewed with a we
Continue Reading




