摘要: 一、C++中不能使用random()函数random函数不是ANSI C标准,不能在gcc,vc等编译器下编译通过。但在C语言中int random(num)可以这样使用,它返回的是0至num-1的一个随机数。 可改用C++下的rand函数来实现。1、C++标准函数库提供一随机数生成器rand,返回... 阅读全文
posted @ 2015-08-07 23:56 人走茶亦凉 阅读(463) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 生日{ class Program { static void Main(string[]... 阅读全文
posted @ 2015-08-07 23:51 人走茶亦凉 阅读(177) 评论(0) 推荐(0) 编辑