sum = a+b(你这个b没有赋值初始化)
不是程序问题,是编译器设置问题 tools-options-directoriesinclude files
#include int 档岩漏main(int argc, char* 枣郑argv[]){ int a,b,sum; a = 123; b = 125; sum = a + b; printf("a+b = %d\n"行烂, sum); return 0;}