BBYR Achieve
返回首页
版面

CPP

学术科技 · 当前来自首页固化板块目录。

5815
本版帖子
镜像initializer element is not constant该如何破解呢,求大牛告知

gcc 编译,可是其中有这么一段 static FILE *display=stdout, /* screen display file */ *opf=stdout; /* current output destination */ 每次编译总是会提示initializer element is not consta…

mophei2014/7/29CPP最后回复 2014/7/30· mophei
5
镜像linux下C++ 编译错误,求大神解答啊

rt 代码在4.几版本上能正常编译,但在3.4.5的C++上编译出如下错误,实在是头疼 In file included from /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/string:57, from /usr/lib/…

OoooO2014/7/29CPP最后回复 2014/7/29· tonyjansan
1
镜像[求助]关于读取文件的问题

a是一个新建的txt文档,空的 ifstream is("a.txt"); string x; is >> x; cout << x; 显示出一个回车,这是为什么呢,请问 还有这个循环 while(!is.eof()){ is >> x; cout << x; } 最后一个字符串会出现两次,我想问一下,最后判定eof那…

NM9992014/7/27CPP最后回复 2014/7/28· NM999
4
镜像【小白求解】单链表的插入和删除为什么要采用二级指针

RT,在c语言版的数据结构中,单链表的插入和删除传的参数均为头结点的指针的指针,为什么要传二级指针呢,不懂啊?求大神指导。

alexdon2014/7/26CPP最后回复 2014/7/27· nuanyangyang
7
镜像Re: c++里面getch()怎么用啊

貌似用cin代替,基本功要学好啊

afeionline2014/7/26CPP最后回复 2014/7/27· afeionline
4
镜像32位机器字节对齐

在32位的机器下,下面的程序输出结果是? #include <stdio.h> #include <stdlib.h> typedef struct t_{ short x[5]; union{ float y; long z; }u; } t; int main() { t tt; printf("%ld\n", s…

wdx012014/7/25CPP最后回复 2014/7/26· ak47
19
镜像求visual studio的下载地址
Sophiali2014/7/25CPP最后回复 2014/7/26· gsl2011
3
镜像怎么样能在简历写自己会c++呢。。。

楼主水货一枚。想问下找工作的时候什么程度可以在简历里写“掌握c++”。。。。 为啥觉得很多时候用c++做开发(学校里)的也就是用个.cpp后缀加简单建个类,剩下就交给C了。。。 房鸣老师讲的那些C++牛逼的特性完全没有见到诶(自己太渣)。。。。 所以想问,掌握到什么程度才可以写下那句话。。。

doug2014/7/25CPP最后回复 2014/7/25· Smutty
29
镜像javaer转c/c++,求推荐书籍

小弟javaer一枚,目前转行到c/c++,但是不知从看那本书入门,求大神赐教,推荐的书最好注重c和c++基础 ---------- C++ Primer貌似太高端了,适合初学者吗?

adsl123gg2014/7/24CPP最后回复 2014/7/25· botieking
15
镜像mac下gcc编译出现问题,求助,在线等啊~~

今天做redis编程时,include<hiredis.h>这个文件已经放在usr/local/include下了,但是在编译时发生了这么一段错误代码: Undefined symbols for architecture x86_64: "_freeReplyObject", referenced from: _pt…

bk5552014/7/17CPP最后回复 2014/7/25· wdx01
3
镜像求问 VS2013建的MFC工程 怎么类视图和资源视图都是空的

发自「贵邮」

lzc123ok2014/7/24CPP最后回复 2014/7/25· shan10211865
6
镜像【solved】求问一个循环相加会少一的异常

使用codeblocks,dev-cpp测试发现: #include <iostream> #include <math.h> using namespace std; int main() { int d[4]= {1,2,3,4}; int tmp =0; for(int i=3; i>=0; i--) { tmp…

buptmuye2014/7/24CPP最后回复 2014/7/24· buptmuye
9
镜像求问,关于erase函数

string s("APLle"); string::iterator iter_s(s.begin()); while(iter_s!=s.end()){ if(isupper(*iter_s)){ s.erase(iter_s); cout << *iter_s << *--iter_s << *++iter_s …

NM9992014/7/24CPP最后回复 2014/7/24· NM999
21
镜像下面这段代码为啥linux下可以跑通

#include <iostream> using namespace std; class B { public: void fun() { b = 100; cout << "b=" << b << endl;} private: int b; }; class A { public: B* get() { ret…

XXLL2014/7/21CPP最后回复 2014/7/23· tonyjansan
9
镜像C++或者c语言暑假复习求组队!

如题,楼主是大三学生一名,为了转计算机系特地暑假狂学c++,有没有同道中人愿意和我组队一起干的?

xiaohuangya2014/7/22CPP最后回复 2014/7/23· ivil1995
37