已知strcpy函数的原型是char *strcpy(char *strDest, const char *strSrc);,其中strDest是目的字符串,strSrc是源字符串. (1)Write the function strcpy, don't call C/C++ string library.(不调用C++/C的字符串库函数,请编写函数strcpy.)(2)Here strcpy can copy strSrc to strDest, but why we use char* as…
How can I convert a QString to char* and vice versa ?(trolltech) Answer:In order to convert a QString to a char*, then you first need to get a latin1 representation of the string by calling toLatin1() on it which will return a QByteArray. Then call d…