Felt reluctant to add such functions to the base library. Particularly using member functions like asFloat(), asInt() etc because I discovered the program can end with messages that it cannot represent the value in the requested format. Returning string seems to be the most stable method and then you can use standard functions to convert to any other format if needed.
No problem with changing to sprintf_s. Of course I can't do that because that's Windows only
Just looked at those j_day variables. I can see where the compiler might trip on them but those are in fact unreachable points if j_day is not initialized.
PS the project was always C++.
No problem with changing to sprintf_s. Of course I can't do that because that's Windows only
Just looked at those j_day variables. I can see where the compiler might trip on them but those are in fact unreachable points if j_day is not initialized.
PS the project was always C++.
Comment