例如
#include <iostream> int add(int x, int y); int main() { cout << add(5, 5) << endl; }
这将编译但不链接.我理解这个问题,我只是不明白它为什么编译好但没有链接.
c c++
c ×1
c++ ×1