函数名称 说明 int atoi(const char *str) 将字符串转化成整型,如果无效,就返回0 int rand(void) 返回一个范围在 0 到 RAND_MAX 之间的伪随机数。 void srand(unsigned int seed) 该函数设置seed数值,对应 rand 使 Read More
posted @ 2025-02-18 11:57 靖意风 Views(10) Comments(0) Diggs(0)
函数名称 说明 double sqrt(double x) 返回x的平方根 double pow(double x, double y) 返回x的y次幂 Read More
posted @ 2025-02-18 10:35 靖意风 Views(6) Comments(0) Diggs(0)
函数声明 说明 int tolower(int c) 将大写字母转化成小写字母 int toupper(int c) 将小写字母转化成大写字母 int islower(int c) 检查字母是否是小写字母 int isupper(int c) 检查字母是否是大写字母 int isdigit(int Read More
posted @ 2025-02-18 10:31 靖意风 Views(15) Comments(0) Diggs(0)