摘要: ASCII码字符char,字符指针char*,字符数组char a[];例如:char a='A'; char* pC="beijing"; char aC[]="beijing";Unicode码字符wchar_t,字符指针wchar_t*,字符数组wchar_t a[];例如:wchar_t b='A'; wchar_t* pB=L"beijing"; //L代表long. wchar_t bC[]=L"beijing";通用码:维护单一原始码,既能按ASCII编译又能按Unic 阅读全文
posted @ 2013-12-17 16:33 hometown 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 以上7中方式的代码实现:/* CString t1,t2; int a1,a2,a3; (GetDlgItem(IDC_EDIT1)->GetWindowTextW(t1)); (GetDlgItem(IDC_EDIT2)->GetWindowTextW(t2)); a1=_ttoi(t1); a2=_ttoi(t2); a3=a1+a2; TCHAR t3[10]; _itow_s(a3, t3,10,10); GetDlgItem(IDC_EDIT3)->SetWindowTextW( t3);*/ /*CString t1,... 阅读全文
posted @ 2013-12-17 12:14 hometown 阅读(308) 评论(0) 推荐(0) 编辑