📄 utilities.h
字号:
/*************************************************************************** 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -