例子:
WORD wSice2 ;
srand((unsigned)time(NULL)*102);
wSice2 = (WORD) MAKELONG(rand()%6+1,rand()%6+1); //第二个色子随机点数,zzl
参考资料
http://baike.baidu.com/view/5876059.htm?fr=aladdin
http://blog.sina.com.cn/s/blog_4c740ac00100d8wz.html
例子:
WORD wSice2 ;
srand((unsigned)time(NULL)*102);
wSice2 = (WORD) MAKELONG(rand()%6+1,rand()%6+1); //第二个色子随机点数,zzl
参考资料
http://baike.baidu.com/view/5876059.htm?fr=aladdin
http://blog.sina.com.cn/s/blog_4c740ac00100d8wz.html