How can I do that witout having an error, I want to put a char* to char[30].
Example :
Error : cannot convert from "const char*" to "char[30]"Code:char sNom[30]; //************This is somewhere else string s = sTexteAnalyser.substr(0,sTexteAnalyser.find('\n',0)); sNom = s.c_str() ;
Tell me what to do please




Reply With Quote