64,662
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
#include <stdlib.h>
#include <afx.h>
int main(void)
{
CString str1("1234"), str2("4321");
int x,y;
x= atoi((LPCTSTR)str1);
y= atoi((LPCTSTR)str2);
printf("x + y = %d\n",x+y);
return 0;
}