(int)textlen); //这是写在模式上的!为什么?(int)textlen); //这是写在模式上的!为什么? 这个空间不够 - 没有类型的空间 - 而且你不应该明确地命名类型(wchar_t)。你可以说sizeof(TCHAR),或者(甚至更好)从指向对象中提取大小: TCHAR * p = malloc(( stringlen + 1)* sizeof(* p)); SteveThat''s not enough space - no room for the type - and you should not benaming the type (wchar_t) explicitly. You could say sizeof(TCHAR), or (evenbetter) extract the size from the pointed-to object:TCHAR *p = malloc( (stringlen + 1) * sizeof(*p) );Steve 这篇关于奇怪的字符串相互写入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
09-05 08:25
查看更多