qq_淡末初夏_03336219
2016-07-16 20:05
#include <stdio.h>
int x = 77;
void fn1()
{
printf("fn1(): x=%d\n", x);
}
int main()
{
int x = 10;
if(x>0)
{
x = 100;
x /= 2;
printf("if语句内, x=%d\n", x);
}
printf("main方法内, x=%d\n", x);
fn1();
return 0;
}即使不做任何改动也可以直接输出期望运行值
VC++的c标准太久了,难免有错误
编译器的原因吧
你是想说vc是C++开发平台,不可以写C语言是吗?C++故名思义,这门语言就是在C语言的基础创造出来的,所以一些C语言的语法也可以在C++平台上使用
C语言入门
927997 学习 · 21542 问题
相似问题