摘要: 1、rand() 生成随机数 rand()%100+1 ==>生成1-100之间的随机数。 2、int &a = 10; 报错 可以用 const int &a=10; void showValue(const int & val) { val=100; //error val 不能修改} 3、函数 阅读全文
posted @ 2020-09-19 14:52 树下看猴 阅读(122) 评论(0) 推荐(0) 编辑