0

遇到了这个,想知道它的作用

LPCTSTR szmyLPCTSTR; 

// doing _tcsncpy things with that string

//at the end then there is this line which i am not sure what it does
szmyLPCTSTR[122] = 0;

谢谢 !!

4

1 回答 1

2

LPCTSTR 只是一个指向字符的指针。它正在向字符串添加一个空终止符。

于 2013-06-14T15:31:24.223 回答