t*e
2 楼
版上有member可以讨论一下topic吗,我都想疯了,没有题目很难,想写个幽默的
更难。
更难。
n*d
3 楼
I have 3 files like this. the compiler does not allow ~PStash has "inline"
flag.
temp_inline.h
class PStash {
void** storage;
public:
PStash() : storage(0) {}
~PStash();
};
temp_inline.cpp
#include "temp_inline.h"
inline PStash::~PStash() {
delete []storage;
}
temp_inlinemain.cpp
#include "temp_inline.h"
int main() {
PStash intStash;
}
It is fine if all the code in one file. What is wrong?
flag.
temp_inline.h
class PStash {
void** storage;
public:
PStash() : storage(0) {}
~PStash();
};
temp_inline.cpp
#include "temp_inline.h"
inline PStash::~PStash() {
delete []storage;
}
temp_inlinemain.cpp
#include "temp_inline.h"
int main() {
PStash intStash;
}
It is fine if all the code in one file. What is wrong?
t*3
5 楼
你觉得TOASTERMASTER有用吗?我也在想考虑参加一个呢
j*r
6 楼
all inline functions should be in header files.
f*f
7 楼
真的倒是问题不大,就是不知道为什么这么贵,那个大头,我看$35顶天了,就等meilefu来
指导一下有什么名堂,为啥这么贵.
指导一下有什么名堂,为啥这么贵.
n*d
9 楼
Why does this one work?
C13_PStashmain.cpp
#include "C13_PStash.h"
int main() {
PStash intStash;
intStash.inflate(3);
}
C13_PStash.h
#ifndef PSTASH_H
#define PSTASH_H
class PStash {
void** storage;
public:
PStash() : storage(0) {}
~PStash();
void inflate(int increase);
int add(void* element);
};
#endif
C13_PStash.cpp
#include "C13_PStash.h"
#include
using namespace std;
PStash::~PStash() {
delete []storage;
}
inline void PStash::inflate(int increa
【在 j********r 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: all inline functions should be in header files.
C13_PStashmain.cpp
#include "C13_PStash.h"
int main() {
PStash intStash;
intStash.inflate(3);
}
C13_PStash.h
#ifndef PSTASH_H
#define PSTASH_H
class PStash {
void** storage;
public:
PStash() : storage(0) {}
~PStash();
void inflate(int increase);
int add(void* element);
};
#endif
C13_PStash.cpp
#include "C13_PStash.h"
#include
using namespace std;
PStash::~PStash() {
delete []storage;
}
inline void PStash::inflate(int increa
【在 j********r 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: all inline functions should be in header files.
f*f
14 楼
那个福建毫子,出价超过150的有5个人啊!!!
相关阅读
Apache Beam bs Apache spark替朋友的公司帮找两位资深Java Server端高手 (转载)2爷一走,groupon起来了。发现IE 10连发两个websocket message,第二个自动丢失CITI的网站是谁做的呀?围棋人机大战细则出炉 李世石最多拿到125万美元请教 linux CentOSbenchmarksgame.alioth.debian.org改版了?Swift看得我头大。DNN就是hype (转载)为什么你们都歧视阿三呢?我认识的印度女生都听温柔的 (转载)叫个毛啊,本来互联网都是泡沫 (转载)被ICC坑死, 求推荐Android相关的Contractor职位agile这些东西的企图,是创造新社会制度angular2真是装b,搞得太复杂。现在哪个DPDK的TCP/IP Stack比较好?Pandas 的index真他妈的奇特还是我那句话,不作不死现在Scala又火了?我觉得王垠对Agile的看法很有道理啊