Tagged: C++

Maximum Subarray 0

Maximum Subarray

Problem statement: Find the largest sum that is possible in an array. I.e., find the maximum sub-array. Solution: From the very first this problem looks complicated because of how it is framed. It sounds like we want to find the MAXIMUM from ALL THE POSSIBLE sums. To find the maximum...

C++Traits 0

C++ Traits

‘C++ Traits’ is an idiom that allows a great level of abstraction, normally possible only by a combination of inheritance and composition, all at compile time. It allows a class to use any object by relying on its traits, i.e., functions and member variables exposed by that object. What C++...

log4cxx 0

Installing log4cxx on MSYS2/Mingw-w64

[whohit]installing-log4cxx-on-msys2mingw-w64[/whohit] In my previous post, I gave the rather simple steps to install MSYS2/Mingw-w64. Now I will tell you how to install a custom library, specifically log4cxx. Before starting, lets acknowledge that there are other libraries that might fit your logging needs. The installation steps will be similar, though here...

1

Getting GNU compilers on Windows (MSYS2/MinGW-x64/boost/Windows 10)

[whohit]getting-gnu-compilers-on-windows-msys2mingw-x64boostwindows-10[/whohit] Okay… first of all… There are multiple packages and tutorials available for getting one or the other working on Windows 10. This tutorial here teaches how to create a comfortable maintainable compiler environment that can be used for a long time. If you want to skip to the actual...