添加
#include <winsock2.h>
#pragma comment(lib, "Ws2_32.lib ")
#pragma comment( lib, "winmm.lib" )
#pragma comment(linker,"/NODEFAULTLIB:libc.lib")
(以此记录)