在EVC中如何使用stract?30分相送
发布网友
发布时间:2023-07-03 18:55
我来回答
共2个回答
热心网友
时间:2023-10-03 04:55
char *strcat(
char *strDestination,
const char *strSource
);
Parameters
strDestination
Null-terminated destination string.
strSource
Null-terminated source string.
Return Value
Each of these functions returns the destination string (strDestination). No return value is reserved to indicate an error.
Remarks
The strcat function appends strSource to strDestination and terminates the resulting string with a null character. The initial character of strSource overwrites the terminating null character of strDestination. The behavior of strcat is undefined if the source and destination strings overlap.
Security Note Because strcat does not check for sufficient space in strDestination before appending strSource, it is a potential cause of buffer overruns. Consider using strncat instead.
////////////
msdn2005
/////////////////////////
连这种程序都要别人帮你写,真不像搞嵌入式的
热心网友
时间:2023-10-03 04:55
楼上那位大哥,这就是你不对了~~
EVC中是不能用stract的,如果自己不懂就不要装懂,更没资格去批评别人,除非你是这方面的牛人,可惜你不是……让哥哥教教你:
evc使用unicode版本
代码如下:
TCHAR string[80];
wcscpy( string, L"Hello world " );
wcscat( string, L"windows " );
AfxMessageBox (string);