第6、7講読解プログラム結果検査5
610 ワード
問題およびコード:
実行結果:
知識ポイントのまとめ:
面白いsleep()を学びました;文、使う前に前処理命令でファイルに含まなければなりません
/*
* Copyright (c) 2014,
* All rights reserved.
* : 4.cpp
* :
* :2014 10 22
* :v1.0
*
* :
* :
* : ,
*/
#include <iostream>
#include <windows.h>
using namespace std ;
int main()
{
int a;
cout<<" 2 "<<endl;
for (a=1;a<=10;a++)
{
Sleep(200);
cout<<" ";
}
cout << endl ;
return 0 ;
}
実行結果:
知識ポイントのまとめ:
面白いsleep()を学びました;文、使う前に前処理命令でファイルに含まなければなりません