sao3f.h
来自「一个包含若干个类」· C头文件 代码 · 共 37 行
H
37 行
/*
* Copyright (c) 2005,Zhao Yanglei
* All rights reserved.
* File name:sao3f.h
* Version: 0.2.3
* Author:sao3
* Date: 2005-10-20
* Description:A header includes functions reusable written by sao3.
Definitions are in sao3f.cpp
* Function(s) included: shuffle
rand
swap
hcd
*/
#ifndef _SAO3F_H
#define _SAO3F_H
#include <ctime>
#include <stdlib.h>
// swap two elements
void swap(const void *, const void *, size_t);
// produce a random integer from rand_min
// to rand_max by rand_step
int rand(int, int, int);
// shuffle a array
void shuffle(const void *, size_t, size_t);
long hcd(long, long);
#endif // _SAO3F_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?