#include "stdafx.h"
#include <winsock2.h>void main()
{
int sock;
sock=Socket(AF_INET,SOCK_RAW,IPPROTO_TCP);
}
错误:
Compiling...
StdAfx.cpp
Compiling...
pp.cpp
D:\VC++\MSDev98\MyProjects\pp\pp.cpp(9) : error C2065: 'Socket' : undeclared identifier
Error executing cl.exe.pp.exe - 1 error(s), 0 warning(s)
为什么会出现这个问题。