【发布时间】:2014-04-19 18:58:06
【问题描述】:
当我们想使用标准 c++ 库中的函数时,我们会包含一个对应的头文件。但头文件只包含函数声明。从这个函数的哪个实现出现?考虑以下简单程序:
#include <stdio.h> //Here is only declaration of functions, not implementation.
int main(){
printf("Hello world");
}
这个函数的实现在哪里?我没有指定我要编译和链接其他.cpp 文件。
【问题讨论】:
标签: c++ standard-library