编译c或c++代码出现error “***” was not declared in this scope 的解决方法
C++ 中error: ‘exit’ was not declared in this scope 的解决方法添加头文件#include <cstdlib>error: ‘inet_ntoa’ was not declared in this scope#define _BSD_SOURCE#include <sys/socket.h>#includ...