为什么如下提示啊,c++

来源:百度知道 编辑:UC知道 时间:2024/09/21 23:37:09
#include <Winsock2.h>
#include <cstdio>
using namespace std;
错误D:\my project\TcpSrv\TcpSrv.cpp(3) : error C2871: 'std' : does not exist or is not a namespace
using ...前面加一个这个试试看
#include <iostream>
我按照这样解决了,可是为什么呢

using ...前面加一个这个试试看
#include <iostream>

does not exist or is not a namespace

是说std不存在或者不是一个namespace,所以。。。这个是你的问题吧

要在前面加上#include<iostream>
这个输入输出流