/*ca50a_c++_break_continue_语句 break语句-打断for{}内部的循环。 1.打断while 2.打断do while 3.打断for 4.打断switch continue语句-提前结束当次迭代,继续循环 goto语句-60年代开始就禁止使用了!一般不用
srand((unsigned)time(NULL));//用时间来设计随机数的种子 #include 时间头文件 if (islower(word[0]))//判断是否小写
vs2017,使用ctrl+F5运行 */
/*ca50a_c++_break_continue_语句
break语句-打断for{}内部的循环。
1.打断while
2.打断do while
3.打断for
4.打断switch
continue语句-提前结束当次迭代,继续循环
goto语句-60年代开始就禁止使用了!一般不用
srand((unsigned)time(NULL));//用时间来设计随机数的种子
#include 时间头文件
if (islower(word[0]))//判断是否小写
vs2017,使用ctrl+F5运行
*/
#include
#include
#include
#include
using namespace std;
int main()
{
vector vec;
//int r;
srand((unsigned)time(NULL));//用时间来设计随机数的种子
for (int i = 0; i < 10000; ++i)
{
//r = rand() % 101;
//vec.push_back(r);
//cout
关注
打赏