BBYR Achieve
返回首页
版面

CPP

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

5815
本版帖子
镜像求各位大神指导一下

想问问各位大神有没有什么比较好的c++教程,或者是链接都行,谢谢啦,c++哦 通过『我邮』发布

xiaoyinghua2014/2/20CPP最后回复 2014/2/21· shan10211865
28
镜像[问题]如何才能调用析构函数呢

#include <iostream> using namespace std; class parent { public: parent() { cout<<"constructing parent"<<endl; } ~parent() { cout<<"destructing parent "<<endl; }…

century2014/2/19CPP最后回复 2014/2/21· iavyfx
3
镜像[问题]请教一道面试题

在32位小端的机器上,如下代码输出时什么: char array[12] = {0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08}; short *pshort = (short *)array; int *pint = (int *)array; int64 …

century2014/2/19CPP最后回复 2014/2/20· hlxwin
16
镜像【菜鸟求问个关于迭代器的问题】

#include <iostream> #include <vector> using namespace std; int main() { vector<int> vi(2,2); for(int i=0;i<10;i++) vi.push_back(i); auto it=vi.begin(); while(it…

mystep2014/2/19CPP最后回复 2014/2/20· mystep
18
镜像[问题] conversion from ‘son*’ to non-scalar type ‘son’

#include "iostream" #include "stdio.h" using namespace std; class parent { public: virtual void output(); }; void parent::output() { printf("parent!"); } class …

century2014/2/16CPP最后回复 2014/2/19· ply2011
5
镜像【求助】在github下了个代码,放在VS2012上运行就各种错

求版主别删帖。。 环境配置win7 +VS2012+opencv248 代码地址:https://github.com/zhijie/lazy-snapping-/blob/master/lazysnapping.cpp LasySnapping():graph(NULL){ 这个冒号是什么意思?感觉以前学C++ 语法…

lmm3610550162014/2/19CPP最后回复 2014/2/19· moondark
15
镜像阿狸和桃子的约会

阿狸和桃子想去海边。阿狸想,如果桃子去,我就去。桃子想,如果阿狸去,我就去。 阿狸想,我还是问问桃子吧,不过,我觉得桃子肯定会去的。不如我先做一些旅行计划吧。他做了很多便笺,贴在电脑上,就去找桃子了。 桃子这样想,做了计划,贴了便笺,去找阿狸。 阿狸发现桃子不在,但是看到她电脑上贴着的详尽的旅行计划,他想,桃子肯定想去…

nuanyangyang2014/2/19CPP最后回复 2014/2/19· tonyjansan
38
镜像字符串数组问题

char **argv={"hello","world"}; 这样定义是错的 char *argv[]={"hello","world"}; 这样定义是对的 为什么呢

waitings2014/2/18CPP最后回复 2014/2/18· ply2011
1
镜像[讨论]请教一个C++问题

请教一下下面的代码: //: C03:FloatingAsBinary.cpp // From Thinking in C++, 2nd Edition // Available at http://www.BruceEckel.com // (c) Bruce Eckel 2000 // Copyright noti…

wugh2014/2/16CPP最后回复 2014/2/18· wugh
4
镜像opencv

有人读过opencv源码吗?关于blobtrack里面的几个算法前景提取、团块识别和跟踪读起来好费劲...求大神指导。

Benzema2014/2/10CPP最后回复 2014/2/17· Benzema
22
镜像为什么不能正确显示

定义一个结构体如下 typedef struct { uchar sync_l; uchar sync_h; uchar eow_type : 4; uchar type : 4; uchar eow; uchar eot; uchar header_size : 5; uchar address_size : 3; …

deng05150012014/2/17CPP最后回复 2014/2/17· deng0515001
2
镜像[问题]error: a class-key must be used when declaring a frie

#include<iostream> using namespace std; template <typename T> class Base { friend T; public: Base() {} ~Base() {} }; class test : virtual public Base<test> { pu…

century2014/2/16CPP最后回复 2014/2/16· gsl2011
2
镜像指针经强制类型转换后为何指向的地址变了?

问题分析见http://blog.sina.com.cn/s/blog_5ef988640100csxa.html这里有详细解释 若A B无继承关系,pa、pb指向的地址是一样的。 可为什么当B为A的派生类时,pa的值会比pb大4,也就是指向的地址就会变化?? 哪位大侠能不能详细解释一下原理,谢谢 class A{ p…

Shero12014/2/14CPP最后回复 2014/2/15· ak47
12
镜像node-webkit居然是国人写的

http://www.csdn.net/article/2014-01-08/2818066-Node-Webkit 不明觉厉

bswgd2014/2/11CPP最后回复 2014/2/14· buptxrc
1
镜像[转载]12个有趣的C语言面试题,你能做对几个?

在weibo上看到的。作为一只姿深C程序猿,被扫盲了 = =|||

linzhenan2014/2/13CPP最后回复 2014/2/14· linzhenan
6