how to suppress the newline in the formatted string returned by ctime?
In C++, the ctime function (from <ctime> or <time.h>) returns a formatted date and time string. However, this string contains a newline. What is the simplest way, in C++ syntax, to remove the newline?
Thanks,
|