解析ip数据包
头文件是这个
#include "stdafx.h"
#include "winsock2.h"
#include "ws2tcpip.h"
#include "stdio.h"
运行结果就是一直有错
显示:
d:\kechengsheji\disanti.cpp(1) : fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
执行 cl.exe 时出错.
不知道怎么解决
检查一下"stdafx.h"文件是否存在,文件是否和当前文件再同一目录下,stdafx.h文件中第一行加入#pragma once,确保文件调用一次