bool 水(){reurn 看看我亮了了没有;}
c++吧
全部回复
仅看楼主
level 11
gameloftyou 楼主

2012年09月15日 16点09分 1
level 11
黑了 没亮- -
2012年09月15日 16点09分 2
真对得起我头像……
2012年09月15日 16点09分
level 11
你亮了,只不过没到高亮
2012年09月15日 16点09分 3
2012年09月15日 16点09分
level 12
你应该CE了:
reurn:undeclared identifier
2012年09月16日 00点09分 4
[揉脸]亮了
2012年09月16日 14点09分
level 11
gameloftyou 楼主

#ifndef CACHEDOBJ_H_INCLUDED
#define CACHEDOBJ_H_INCLUDED
#include <cstddef>
#include <memory>
#include <stdexcept>
template <class T> class CachedObj {
public:
    void *operator new(std::size_t);
    void operator delete(void *,std::size_t);
    virtual ~CachedObj(){}
protected:
    T *next;
    
private:
    static void add_to_freelist(T *);
    static std::allocator<T> alloc_mem;
    static T *freeStore;
    static const std::size_t chunk;
    
};
#include "CachedObj.cpp"
#endif
 
2012年09月16日 14点09分 5
[Yeah]终于优化好了
2012年09月16日 14点09分
level 11
gameloftyou 楼主

#ifndef 
CACHEDOBJ_H_INCLUDED
#define 
CACHEDOBJ_H_INCLUDED
#include 
<
cstddef
>
#include 
<
memory
>
#include 
<
stdexcept
>
template 
<
class 
T

class 
CachedObj 
{
public
:
    
void 
*
operator 
new
(
std
:
:
size_t
)
;
    
void 
operator 
delete
(
void 
*
,
std
:
:
size_t
)
;

2012年09月16日 14点09分 6
level 11
gameloftyou 楼主
    
virtual 
~
CachedObj
(
)
{
}
protected
:
    

*
next
;
    
private
:
    
static 
void 
add_to_freelist
(

*
)
;
    
static 
std
:
:
allocator
<
T

alloc_mem
;
    
static 

*
freeStore
;
    
static 
const 
std
:
:
size_t 
chunk
;
    
}
;
#include 
"
CachedObj
.
cpp
"
#endif
 
2012年09月16日 14点09分 7
level 11
gameloftyou 楼主
效果明显[鲁拉]
2012年09月16日 14点09分 8
level 15
reurn [汗]
2012年09月16日 14点09分 9
这个还真不是故意的,手滑了[囧]
2012年09月16日 14点09分
level 11
哟,换头像了
2012年09月16日 14点09分 10
看错,说的T2胸
2012年09月16日 14点09分
level 12
求解每行前的空格为什么没被和谐。。。
2012年09月17日 10点09分 11
因为我是用软件发的所以不和谐[大笑]https://tieba.baidu.com/p/1865756864
2012年09月17日 11点09分
回复 gameloftyou :看来EP猜对了。。。
2012年09月17日 11点09分
1