gpt4 book ai didi

c++ - 在 C/C++ 中使用字符串——[ ] 在 LPCTSTR 之后

转载 作者:太空宇宙 更新时间:2023-11-04 08:55:50 24 4
gpt4 key购买 nike

遇到这个并想知道它是做什么的

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;

谢谢!!

最佳答案

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

关于c++ - 在 C/C++ 中使用字符串——[ ] 在 LPCTSTR 之后,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17112051/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com