Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图通过说生成一个介于 0 和 3 之间的随机数
int i = arc4Random() % 3;
但它一直给我警告“函数'arc4Random'的隐式声明在c99中无效
不用大写的r试试
int i = arc4random() % 3;
你有一个大写的“R” arc4Random。应该是:int i = arc4random % 3;。
arc4Random
int i = arc4random % 3;