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 的大作中提到】
: 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 的大作中提到】
: all inline functions should be in header files.
f*f
14 楼
那个福建毫子,出价超过150的有5个人啊!!!
相关阅读
好热闹啊Application Security Engineer职业前景苦寻VNI Numerical Lib...Gate One看起来很不错有无这样的算法或者理论Ing Direct checking account免费送50刀, 赶紧申请C++ primer上的advanced topic实用性强吗?一个 C++ STL base type 的问题问一个简单的:setter 和getter有什么用处?MAPI vs IMAP为什么大家都说c++水很深?这版快成动物园了我觉得c++挺好的Java EE 6 Pocket Guideaspx网页现在到底流行不? (转载)C ++ 问题IOS APP 开发指南新手问一个多维数组传递给函数的问题想自己建个网站+mobile apps,求建议Amex SPG卡送25K points 免费送500刀现金 最佳酒店卡