⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sao3f.h

📁 一个包含若干个类
💻 H
字号:
/*
 * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -