您当前的位置: 首页 >  c++

txwtech

暂无认证

  • 4浏览

    0关注

    813博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

ca50a_c++_break_continue_语句

txwtech 发布时间:2020-02-05 18:28:19 ,浏览量:4

/*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             
关注
打赏
1665060526
查看更多评论
0.0384s