还是scanf在xcode的问题,明明已经显示built up,为什么还是不行
xcode吧
全部回复
仅看楼主
level 1
琳卡斯
楼主
#include <stdio.h>
int main()
{
int a, b, c;
scanf("%d %d", &a, &b);
c=a+b;
printf("%d+%d=%d", a, b, c);
return 0;
}
2014年02月16日 05点02分
1
level 5
Sunny雨天丶
是不是框架选错了?Command Line Tool默认Foundation,得切换到C
2014年02月17日 13点02分
2
琳卡斯
确定没错
2014年02月18日 00点02分
level 7
后入够不着
你确定printf能这么写?换成nslog看看
2014年02月18日 14点02分
3
1