Answer to Question #49838 in C++ for yousuf waseem

Question #49838
Write a program output a rotating fan on the screen. This is done by printing first a Plus sign in the center of the screen,i.e plus and multiply sign
1
Expert's answer
2014-12-08T14:13:31-0500
#include <iostream>
#include <windows.h>
using namespace std;
int main() {
while (true) {
Sleep(500);
cout << "+";
cout << "\r";
Sleep(500);
cout << "x";
cout << "\r";
}
return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS