C++
yangbin762003
这个作者很懒,什么都没留下…
展开
-
配置Editplus的PHP调试环境(二)
转自:http://www.cnblogs.com/analyzer/archive/2008/08/20/1272237.html 配置Editplus的PHP调试环境 加入php手册 1.1 打开Editplus进入菜单 [Tools] (工具)-> [Configure User Tools...](配置用户工具) 1.2 点击按钮 [Add Tool] (添加工转载 2012-11-04 16:09:12 · 561 阅读 · 0 评论 -
实现自己的不定参数函数(类似printf)
实现自己的不定参数函数 以下是我的代码: int MyPrintf(LPCTSTR pcszFormat,...) { va_list pArgList; va_start(pArgList, pcszFormat); TCHAR* szBuffer = new TCHAR[MAX_PATH]; _vstprintf_s( szBuffer,MAX_PATH,pcszFor原创 2007-11-21 18:00:00 · 660 阅读 · 0 评论 -
关于随机数!
关于随机数的一点点体会。 1、众所周知,c语言的随机函数 rand(),每次运行的结果是一样的。 代码如下: #include #include using namespace std; int main() { for (int i=0; i<10; ++i) { cout<<rand()<<endl; } return 0; } 那么就需要设定随机种子了,s原创 2010-08-31 23:20:00 · 537 阅读 · 0 评论