#include <stdlib.h> ... arc4random_uniform(100); 0-99的 随机数..do while & while
2016-01-04 16:00
393 查看
int isCouple = 0; int count = 0; do { printf("表白...\n"); count++; if (count == 100) { isCouple = 1; } } while (!isCouple); printf("=================================\n"); isCouple = 0; count = 0; while (!isCouple) { printf("表白...\n"); count++; if (count == 100) { isCouple = 1; } } // int aa = 0; // for (;aa != 99;) { // aa = arc4random_uniform(100); // printf("%d\n", aa); // }
相关文章推荐
- Java-No.14 Google-Guava工具类整理
- log4j配置祥解
- resin __jsp.java (权限不够)
- OS开发常用的开源类库
- c/c++中的相对路径和绝对路径
- 【opencv学习】完全基于opencv的双目景深与测距的实现
- Android开发秘籍学习笔记(十二)
- oracle 查看建表语句
- 2016年计划
- UITextFiled输入框的使用(详细)
- JNI入门学习总结
- ios 上拉载入下拉刷新Dome
- R语言实战 —— 常见问题解决方法
- go语言学习笔记
- Swift Tips笔记
- UVA 10917 Walk Through the Forest
- servlet监听器Listener
- Java注解教程及自定义注解
- 6、树和二叉树
- C小加 之 随机数(南阳oj255)(水题)