?? smartptrs.h
字號:
#if !defined SMART_PTRS_H
#define SMART_PTRS_H
//------------------------------------
// smartptrs.h
// Smart pointers to objects
// (c) Bartosz Milewski, 1996
//------------------------------------
#include "recorder.h"
#include "fft.h"
#include "xptr.h"
class PtrRecorder : public XPtr<Recorder>
{
public:
PtrRecorder (int cSamples,
int cSamplePerSec)
: XPtr<Recorder>(new RecorderM16 (cSamples, cSamplePerSec))
{}
void ReInit (int bitsPerSample,
int cSamples,
int cSamplePerSec);
};
class PtrFft : public XPtr<Fft>
{
public:
PtrFft (int points, long sampleRate)
: XPtr<Fft> (new Fft (points, sampleRate))
{}
void ReInit (int points, long sampleRate);
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -