📄 activebubblesorter.h
字号:
// Copyright (c) 2006 Nokia Corporation.
#ifndef __ACTIVEBUBBLESORTER_H__
#define __ACTIVEBUBBLESORTER_H__
#include <e32base.h>
#include <f32file.h>
class MBubbleSortNotify;
class CActiveBubbleSorter : public CActive
{
public: // Construction/destruction
static CActiveBubbleSorter* NewL(MBubbleSortNotify& aNotifier);
~CActiveBubbleSorter();
protected: // from CActive
// from CActive
void DoCancel();
void RunL();
TInt RunError(TInt aError);
private: // Construction
CActiveBubbleSorter(MBubbleSortNotify& aNotifier);
void ConstructL();
public: // Public functions
void StartL();
void SyncSortL();
private: // Internal functions
void ReadNumbersFromFileL();
void WriteNumbersToFileL();
void SortL();
private: // data
TInt iX;
TInt iY;
RArray<TInt> iNumbersArray;
MBubbleSortNotify& iNotifier;
TInt iCount;
};
#endif // __ACTIVEBUBBLESORTER_H__
// End of file
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -