用 #include <filename.h> 格式来引用标准库的头文件(编译器将从 标准库目录开始搜索). #include <iostream> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ using namespace std; //定义结构 struct student { ]; float gra…
2013-07-04 16:45:19 找了很多资料,没有说的很明白的,下面是老外的一篇文章,解释的比较清楚,后面给出翻译. Clarifying stdio.h versus cstdio 转自:http://forums.codeguru.com/showthread.php?344430-Clarifying-stdio-h-versus-cstdio I constantly see recommendations to #include <cstdio> instead of usi…