Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.58 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. using namespace System;
  4. enum Color { NEGRO, ROJO, AZUL, BLANCO, VERDE, AMARILLO, MORADO };
  5. void CambiarColorLetra(Color c) {
  6. switch (c) {
  7. case NEGRO: Console::ForegroundColor = ConsoleColor::Black; break;
  8. case ROJO: Console::ForegroundColor = ConsoleColor::Red; break;
  9. case AZUL: Console::ForegroundColor = ConsoleColor::Blue; break;
  10. case BLANCO: Console::ForegroundColor = ConsoleColor::White; break;
  11. case VERDE: Console::ForegroundColor = ConsoleColor::Green; break;
  12. case AMARILLO: Console::ForegroundColor = ConsoleColor::Yellow; break;
  13. case MORADO: Console::ForegroundColor = ConsoleColor::Magenta; break;
  14. }
  15. }
  16. void CambiarColorFondo(Color c) {
  17. switch (c)
  18. {
  19. case NEGRO: Console::BackgroundColor = ConsoleColor::Black; break;
  20. case ROJO: Console::BackgroundColor = ConsoleColor::Red; break;
  21. case AZUL: Console::BackgroundColor = ConsoleColor::Blue; break;
  22. case BLANCO: Console::BackgroundColor = ConsoleColor::White; break;
  23. case VERDE: Console::BackgroundColor = ConsoleColor::Green; break;
  24. case AMARILLO: Console::BackgroundColor = ConsoleColor::Yellow; break;
  25. case MORADO: Console::BackgroundColor = ConsoleColor::Magenta; break;
  26. }
  27. }
  28.  
  29. void nivel2() {
  30. cout << "********************************************************************************************" << endl;
  31. cout << "** **" << endl;
  32. cout << "** **" << endl;
  33. cout << "** **" << endl;
  34. cout << "** **" << endl;
  35. cout << "** **" << endl;
  36. cout << "** **" << endl;
  37. cout << "** **" << endl;
  38. cout << "** || || || || || ||||||||||| || **" << endl;
  39. cout << "** ||| || || || || || || **" << endl;
  40. cout << "** || || || || || || || || **" << endl;
  41. cout << "** || || || || || || || || **" << endl;
  42. cout << "** || || || || || || ||||||||||| || **" << endl;
  43. cout << "** || || || || || || || || **" << endl;
  44. cout << "** || || || || || || || || **" << endl;
  45. cout << "** || ||| || || || || || **" << endl;
  46. cout << "** || || || |||| ||||||||||| ||||||||||| **" << endl;
  47. cout << "** **" << endl;
  48. cout << "** **" << endl;
  49. cout << "** **" << endl;
  50. cout << "** **" << endl;
  51. cout << "** **" << endl;
  52. cout << "** * * * * **" << endl;
  53. cout << "** ** ** **" << endl;
  54. cout << "** ** ** **" << endl;
  55. cout << "** ** ** **" << endl;
  56. cout << "** ** **" << endl;
  57. cout << "** ** **" << endl;
  58. cout << "** ** **" << endl;
  59. cout << "** ** **" << endl;
  60. cout << "** ** **" << endl;
  61. cout << "** ** **" << endl;
  62. cout << "** ** **" << endl;
  63. cout << "** ** **" << endl;
  64. cout << "** *** **" << endl;
  65. cout << "** *** ** **" << endl;
  66. cout << "** ************* **" << endl;
  67. cout << "** **" << endl;
  68. cout << "** **" << endl;
  69. cout << "** **" << endl;
  70. cout << "********************************************************************************************" << endl;
  71. }
  72. void nivel3() {
  73. cout << "********************************************************************************************" << endl;
  74. cout << "** **" << endl;
  75. cout << "** **" << endl;
  76. cout << "** **" << endl;
  77. cout << "** **" << endl;
  78. cout << "** **" << endl;
  79. cout << "** **" << endl;
  80. cout << "** **" << endl;
  81. cout << "** || || || || || ||||||||||| || **" << endl;
  82. cout << "** ||| || || || || || || **" << endl;
  83. cout << "** || || || || || || || || **" << endl;
  84. cout << "** || || || || || || || || **" << endl;
  85. cout << "** || || || || || || ||||||||||| || **" << endl;
  86. cout << "** || || || || || || || || **" << endl;
  87. cout << "** || || || || || || || || **" << endl;
  88. cout << "** || ||| || || || || || **" << endl;
  89. cout << "** || || || |||| ||||||||||| ||||||||||| **" << endl;
  90. cout << "** **" << endl;
  91. cout << "** **" << endl;
  92. cout << "** **" << endl;
  93. cout << "** **" << endl;
  94. cout << "** **" << endl;
  95. cout << "** ******* **" << endl;
  96. cout << "** ** ** **" << endl;
  97. cout << "** ** ** **" << endl;
  98. cout << "** ** ** **" << endl;
  99. cout << "** ** **" << endl;
  100. cout << "** *** **" << endl;
  101. cout << "** **** **" << endl;
  102. cout << "** *** **" << endl;
  103. cout << "** *** **" << endl;
  104. cout << "** ** **" << endl;
  105. cout << "** ** ** **" << endl;
  106. cout << "** ** ** **" << endl;
  107. cout << "** ** ** **" << endl;
  108. cout << "** ******* **" << endl;
  109. cout << "** **" << endl;
  110. cout << "** **" << endl;
  111. cout << "********************************************************************************************" << endl;
  112. }
  113. void nivel4() {
  114. cout << "********************************************************************************************" << endl;
  115. cout << "** **" << endl;
  116. cout << "** **" << endl;
  117. cout << "** **" << endl;
  118. cout << "** **" << endl;
  119. cout << "** **" << endl;
  120. cout << "** **" << endl;
  121. cout << "** **" << endl;
  122. cout << "** || || || || || ||||||||||| || **" << endl;
  123. cout << "** ||| || || || || || || **" << endl;
  124. cout << "** || || || || || || || || **" << endl;
  125. cout << "** || || || || || || || || **" << endl;
  126. cout << "** || || || || || || ||||||||||| || **" << endl;
  127. cout << "** || || || || || || || || **" << endl;
  128. cout << "** || || || || || || || || **" << endl;
  129. cout << "** || ||| || || || || || **" << endl;
  130. cout << "** || || || |||| ||||||||||| ||||||||||| **" << endl;
  131. cout << "** **" << endl;
  132. cout << "** **" << endl;
  133. cout << "** **" << endl;
  134. cout << "** **" << endl;
  135. cout << "** ***** **" << endl;
  136. cout << "** ******** **" << endl;
  137. cout << "** *** ** **" << endl;
  138. cout << "** *** ** **" << endl;
  139. cout << "** *** ** **" << endl;
  140. cout << "** *** ** **" << endl;
  141. cout << "** *** ** **" << endl;
  142. cout << "** ***************** **" << endl;
  143. cout << "** *************** **" << endl;
  144. cout << "** ** **" << endl;
  145. cout << "** ** **" << endl;
  146. cout << "** ** **" << endl;
  147. cout << "** ** **" << endl;
  148. cout << "** ** **" << endl;
  149. cout << "** ** **" << endl;
  150. cout << "** ** **" << endl;
  151. cout << "** **" << endl;
  152. cout << "** **" << endl;
  153. cout << "** **" << endl;
  154. cout << "********************************************************************************************" << endl;
  155. }
  156. void perdiste() {
  157. cout << "**************************************************************************************" << endl;
  158. cout << "** **" << endl;
  159. cout << "** **" << endl;
  160. cout << "** **" << endl;
  161. cout << "** **" << endl;
  162. cout << "** XX XX XXXXXXXXXXXXX XX XX **" << endl;
  163. cout << "** X X XX XX XX XX **" << endl;
  164. cout << "** X X XX XX XX XX **" << endl;
  165. cout << "** X X XX XX XX XX **" << endl;
  166. cout << "** X X XX XX XX XX **" << endl;
  167. cout << "** XX XX XX XX XX **" << endl;
  168. cout << "** XX XX XX XX XX **" << endl;
  169. cout << "** XX XX XX XX XX **" << endl;
  170. cout << "** XX XX XX XX XX **" << endl;
  171. cout << "** XX XX XX XX XX **" << endl;
  172. cout << "** XX XXXXXXXXXXXXX XXXXXXXXXXXXXXX **" << endl;
  173. cout << "** **" << endl;
  174. cout << "** **" << endl;
  175. cout << "** **" << endl;
  176. cout << "** **" << endl;
  177. cout << "** XX XXXXXXXXXXXXX XXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXX **" << endl;
  178. cout << "** XX XX XX XX XXXXXXXXXXXXXX **" << endl;
  179. cout << "** XX XX XX XX XX **" << endl;
  180. cout << "** XX XX XX XX XX **" << endl;
  181. cout << "** XX XX XX XX XX **" << endl;
  182. cout << "** XX XX XX XXXXXXXXXXXXXX XX **" << endl;
  183. cout << "** XX XX XX XX XX **" << endl;
  184. cout << "** XX XX XX XX XX **" << endl;
  185. cout << "** XXX XX XX XX XX **" << endl;
  186. cout << "** XXXX XX XX XX XX **" << endl;
  187. cout << "** XXXXXXXXXXXXX XXXXXXXXXXXXX XXXXXXXXXXXXXX XX **" << endl;
  188. cout << "** **" << endl;
  189. cout << "** **" << endl;
  190. cout << "** **" << endl;
  191. cout << "**************************************************************************************" << endl;
  192. }
  193. int main() {
  194. nivel2();
  195. nivel3();
  196. nivel4();
  197. perdiste();
  198. system("pause>0");
  199. return 0;
  200. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement