Smile


SUBMITTED BY: Guest

DATE: Dec. 15, 2014, 4:54 p.m.

FORMAT: C++

SIZE: 853 Bytes

HITS: 1123

  1. #include <iostream>
  2. #include <windows.h>
  3. using namespace std;
  4. char c1[2][4] ={
  5. '*', ' ',' ','*',
  6. '\\','_','_','/'};
  7. char c2[2][4] ={
  8. '*', ' ',' ','-',
  9. '\\','_','_','/'};
  10. char c3[2][4] ={
  11. '-', ' ',' ','*',
  12. '\\','_','_','/'};
  13. int main()
  14. {
  15. int c=1;
  16. while(true)
  17. {
  18. system("cls");
  19. for(int i = 0; i <= 1; i++)
  20. {
  21. for(int j = 0; j <= 3; j++)
  22. {
  23. if(c==1)cout<<c1[i][j];
  24. if(c==2)cout<<c2[i][j];
  25. if(c==3)cout<<c3[i][j];
  26. }
  27. cout<<endl;
  28. }
  29. if(c==1) c=2;
  30. else if(c==2) c=3;
  31. else c=1;
  32. Sleep(200);
  33. }
  34. return 0;
  35. }

comments powered by Disqus