Guest_imported
New member
- Jan 1, 1970
- 0
Using this code,
void main()
{ string A,B,C;
A="hello";
B="how are you";
C="what is your name?";
cout<<A<<endl;
cout<<B<<endl;
cout<<C<<endl;
}
its going to display like this,
hello
how are you
what is your name?
My question is,when C++ display those its going to do it fast enough that its going to look like it was display it all at the same time.
How can I get C++ to display one string and wait maybe 2 seconds then display next string and wait 2 second, go on and on ..ect..ect..
Does anyone have any idea?
void main()
{ string A,B,C;
A="hello";
B="how are you";
C="what is your name?";
cout<<A<<endl;
cout<<B<<endl;
cout<<C<<endl;
}
its going to display like this,
hello
how are you
what is your name?
My question is,when C++ display those its going to do it fast enough that its going to look like it was display it all at the same time.
How can I get C++ to display one string and wait maybe 2 seconds then display next string and wait 2 second, go on and on ..ect..ect..
Does anyone have any idea?