stdlib.h

  函数名称 说明  
  int atoi(const char *str) 将字符串转化成整型,如果无效,就返回0  
       
       
   int rand(void) 返回一个范围在 0 到 RAND_MAX 之间的伪随机数。  
   void srand(unsigned int seed) 该函数设置seed数值,对应 rand 使用的随机数发生器。   
       
       
       
       
posted @ 2025-02-18 11:57  靖意风  Views(10)  Comments(0)    收藏  举报