i tryed to use this algorithm to convert a string to an array. the problem is this: strcpy don't work.
i tried also: strcpy_s strncpy memcpy --> with this function my array can print only the 1st word ( dunno why )...
string tmp;
getline(cin, tmp);
char* messaggio = new char[tmp.size()];
ZeroMemory(messaggio, tmp.size());
strcpy(messaggio, tmp.c_str());
tmp.resize(NULL);
i use Visual Studio 2013... when i try to use strcpy i have a strange error: C4996 may be unsafe. if i try with strcpy_s is the same, same with strncpy...