Posts

Showing posts with the label String

Converting a SYSTEMTIME to a std::string in C++

Image
A short recipe outlining how to output a SYSTEMTIME value as a std::string. The example format will be "YYYY-MM-DD HH:MM:SS.MMM" I specifically wanted to include milliseconds. In this example I employ three possible techniques: 1. MFC CString 2. std::ostringstream 3. sprintf

Java Collections: The Basics

One long section of code outlining how to use the Java Collections. As per the Java Strings post, this consists of one long code snippet outlining commonly used Java collections such as Hash Maps, Linked Lists etc. As this is ongoing, expect to see newer stuff added as time progresses.