Using MS Visual Studio C++
I am using a function that I wrote which will create a string. The string will have the date & time which is preceeded by a letter that is a function arg to identify the output file type. This string is used to make the output file for the program. However, when I use this function to output two different files, the underscore is used in the first file, but on the second use, the underscore turns into a 0 (zero). This happens when I change the underscore to a random ascii character. Please view the code. I'd like to know how I can use the underscore in both filenames that are created consecutively.