2009年6月17日

摘要: 在vc++中程序中用了srandom()和random(),头文件为stdlib.h,但编译出现错误error C3861: “srandom”: 找不到标识符。 原因是现在vc++编译器的库函数中没有randomize()和random(),分别用srand()和rand()代替了。 #include <time.h> //定义关于时间的函数 一般在用到t... 阅读全文
posted @ 2009-06-17 23:59 土豆皮 阅读(1757) 评论(0) 推荐(0)
摘要: At the core of any pseudorandom number generation software is a routine for generating uniformly distributed random integers. In C++ TR1 you have your choice of several core generators that it calls &... 阅读全文
posted @ 2009-06-17 23:58 土豆皮 阅读(2818) 评论(2) 推荐(0)

导航