Salve,
ho il seguente problema, una funzione mi ritorna:
ed ho un vettore di caratteri:codice:// Get time char szTime[30]; getDateTime(szTime); void getDateTime(char * szTime) { time_t rawtime = time(NULL); struct tm timeinfo; gmtime_s(&timeinfo, &rawtime); strftime(szTime, 30, "%a, %d %b %Y %X GMT", &timeinfo); }
vorrei copiare da szTime a vChar con l'operatore di assegnazione = ma mi da errore...come posso risolvere il problema?codice:std::vector<char> vChar; vChar.resize(30);
grazie!