utilities.h

来自「此代码经过大量使用」· C头文件 代码 · 共 44 行

H
44
字号
/***************************************************************************                          utilities.h  -  description                             -------------------    begin                : Wed May 22 2002    copyright            : (C) 2002 by R黡iger Koch    email                : rkoch@rkoch.org ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * ***************************************************************************/using namespace std;#include <string>/**  * wrap some useful functions and classes not directly related to the core  * of Amygdala  */namespace Utilities {    /** @return a random number between 0. and 100.  */    float RandPercent();    float GaussRand(float mean, float sigma);    /** @return a string representation of an integer */    string itostr(int val);    /** @return a string representation of a float */    string ftostr(float val);    /** creates a directory with a random name. The called must take      * care of deleting it later. This function exists because of      * portablity and other issues with the system functions      * @return the name of the directory created      * @throw runtime_exception in case the directory cannot be created      */    string MkTempDir();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?