+ -
当前位置:首页 → 问答吧 → C/C++
  • 一个奇怪的网络问题
    调用select时返回1,表示socket可读,但是recv返回-1,errno是timeout,我就奇怪了,select返回1已经说明有数据了,怎么去读数据还会超时呢?还有其他情况会导致select返回1吗?
    xumaojun  时间:12-04 + 阅读全文
  • 如何用vector给二维数组赋值?类成员能否像结构体那样用数组来表示?
    1.#include<iostream>#include<string>#include<vector>usingstd::endl;usingstd::cin;usingstd::cout;usingstd::string;usingstd::vector;classchuru{public: void
    QIYWTC  时间:12-04 + 阅读全文
  • System error -2146697210
    我在用C++写一个用MSXML解析XML文件的程序,文件load没有问题,但是在用selectSingleNode选取节点时总是得不到节点,返回错误Systemerror-2146697210,请各位大侠帮忙,不胜感激。。。
    yingsunyunmeng  时间:12-04 + 阅读全文
  • 菜鸟请教 (4)
    我想做一个仓库管理系统,我想动态添加货物,所以想写一个动态数组,可以动态添加删除货物类的对象,请问应该怎么写,我是菜鸟,所以请举个简单的小例子
    fireylee  时间:12-04 + 阅读全文
  • UDP绑定出错
    我做一个UDP的实验,我能不能在我一台机子上同时做服务器和客户端,我的电脑只有一个网卡,我这样做了,我运行的时候服务器端的程序绑定地址出错错误信息binderror10049是程序的问题还是服务器和客户端不能同时绑定呢?请大家指点
    l_jingyi  时间:12-04 + 阅读全文
  • c++问题
    c++中灰色的部分可不可以自己加函数??
    zs7690958  时间:12-03 + 阅读全文
  • 求解这段代码到底咋啦?
    我截取部分代码,首先是数据结构typedefstructclass{ intclass_number; intamount; }class;typedefstructcourse{ charname[10]; intgrade; }course;typedefstructstudent{
    william0701  时间:12-04 + 阅读全文
  • 一个有趣的现象
    #include<string>#include<iostream>usingnamespacestd;intmain(){ stringstrId("MEMORY\\test"); strId=strId.substr(7);//getridofMEMORY\ cout<<str
    yusss  时间:12-04 + 阅读全文
  • 求高手来看看并指出错误~~~~~~~~~~~~~~
    #include<iostream>using namespace std;char str(char a[],char b[]){char*p=a;char*q=b;int i=0,j=0;while(*(p+i)!='\0'&&*(q+j)!='\0'){
    ljl0617  时间:12-04 + 阅读全文
  • 太简单了,白给分
    如何用gdb查看一个函数由多少字节组成?
    followme_1987  时间:12-03 + 阅读全文

热门应用

更多