📄 choose.h
字号:
// Choose.h: interface for the CChoose class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_CHOOSE_H__D40E3860_43D1_42AF_B87A_DEC5CB4E5A6D__INCLUDED_)
#define AFX_CHOOSE_H__D40E3860_43D1_42AF_B87A_DEC5CB4E5A6D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CChoose
{
public:
CChoose(int n, int k);
~CChoose(void);
int pos(int i) { return num[i]; }; // returns the i-th position
private:
int *num; // list of the positions
float *rval; // random value (used to get random ordering of the items)
};
#endif // !defined(AFX_CHOOSE_H__D40E3860_43D1_42AF_B87A_DEC5CB4E5A6D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -