死循环程序

      计算机与编程 2007-6-4 14:42:00

#include <iostream>
#include <string>
#include <time.h>
using namespace std;

main ()
{
string user_name;
cout<<"========================="<<endl;
cout<<"please input your name:  ";

cin>>user_name;
//int n;
loop: cout<<"Now Loading";
for (int n=1;n<1000000000;n++)
{
 if (n%10000000==0)
 {
  cout<<".";
 }
};
cout<<endl;
cout<<"hi,"<<user_name<<endl;
cout<<"you are killed,haha"<<endl;
goto loop;
return 0;
}

标签集:TAGS:
回复Comments() 点击Count()
喜欢就顶一下

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}