S
SuperSoft
Unregistered / Unconfirmed
GUEST, unregistred user!
#include "stdafx.h"
#include "Winsock.h"
int main(int argc, char* argv[])
{
SOCKET sock;
sock=socket(AF_INET, SOCK_STREAM, 0);//在我机器上总是返回
//INVALID_SOCKET(VC6)
if(sock==INVALID_SOCKET)
{
printf("Socket start fail!/n");
}
else
printf("Hello World!/n");
return 0;
}
#include "Winsock.h"
int main(int argc, char* argv[])
{
SOCKET sock;
sock=socket(AF_INET, SOCK_STREAM, 0);//在我机器上总是返回
//INVALID_SOCKET(VC6)
if(sock==INVALID_SOCKET)
{
printf("Socket start fail!/n");
}
else
printf("Hello World!/n");
return 0;
}