16,471
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
#include <iostream>#include <afx.h>//afx.h要放在所有头文件的前面
#include <iostream>
using namespace std;
void main()
{
CString str1, str2 ;
str1="0123456";
str2="789";
str1+=str2;
cout<<(LPCTSTR)str1;//类型转换
}
_Myt& operator<<(const void *_X)
struct CStringData
{
long nRefs; // reference count
int nDataLength; // length of data (including terminator)
int nAllocLength; // length of allocation
// TCHAR data[nAllocLength]
TCHAR* data() // TCHAR* to managed data
{ return (TCHAR*)(this+1); }
};