я хочу преобразовать формат даты "Www Mmm dd hh:mm:ss yyyy" и скопировать только "dd hh:mm:ss" в строку на С++.
до сих пор я пытался это сделать:
char str[255];
char str1[255];
int y = 0;
int i;
time_t timer;
timer = GetTickCount();
strcpy(str, ctime(&timer));
sendBuff[strlen(str) - 1] = '\0'; //to remove the new-line from the created string
//to copy from the string the exact Time Without Date from the struct of Www Mmm dd hh:mm:ss yyyy - will take only hh:mm:ss
for (i = 11; i < 19; i++, y++)
strcpy(&str1[y], &str[i]);
std::string
иsubstr
? - person Some programmer dude   schedule 04.12.2015std::strftime
, чтобы получить правильную строку с самого начала? - person Some programmer dude   schedule 04.12.2015