Programlama | Programlama Dilleri | C Programlama Dili |C++

Anasayfa Programlama C / C++ Matrix Uygulamas?


Matrix Uygulamas?

AÇIKLAMA

Bu program temelinde Carriage Return ifadesinin nas?l kullan?ld???n? anlatmaya yöneliktir. Matrix 1'deki bilgisayarda görünen programd?r. Program içerisinde Sleep(int) fonksiyonu kullan?lm??t?r ve tamsay? tipinde bir argüman almaktad?r. Al?nan bu argüman milisaniye cinsindendir. Ayr?ca ses ç?karma i?lemi içinde bilindi?i üzere printf fonksiyonu içinde "\a" ifadesi kullan?lm??t?r.

Program?n Tamam?n? A?a??daki Linkten ?ndirebilirsiniz

Linki Görebilmeniz ?çin Üye Olman?z Gerekmektedir...

Üye Kay?t

Program Kodu:

  1. //---------------------------------------------------------------------------
  2.  
  3. #include <vcl.h>
  4. #include <stdio.h>
  5. #include <conio.h>
  6. #pragma hdrstop
  7. //---------------------------------------------------------------------------
  8.  
  9. #pragma argsused
  10. int main(int argc, char* argv[])
  11. {
  12.  
  13. Sleep(150);
  14. printf("W");
  15. Sleep(150);
  16. printf("a");
  17. Sleep(150);
  18. printf("k");
  19. Sleep(150);
  20. printf("e");
  21. Sleep(150);
  22. printf(" ");
  23. Sleep(150);
  24. printf("u");
  25. Sleep(150);
  26. printf("p");
  27. Sleep(150);
  28. printf(",");
  29. Sleep(150);
  30. printf(" ");
  31. Sleep(150);
  32. printf("N");
  33. Sleep(150);
  34. printf("e");
  35. Sleep(150);
  36. printf("o");
  37. Sleep(150);
  38. printf(".");
  39. Sleep(150);
  40. printf(".");
  41. Sleep(150);
  42. printf(".");
  43. Sleep(4000);
  44. printf("\r                                                           ");
  45. Sleep(150);
  46. printf("\rT");
  47. Sleep(250);
  48. printf("h");
  49. Sleep(250);
  50. printf("e");
  51. Sleep(150);
  52. printf(" ");
  53. Sleep(250);
  54. printf("M");
  55. Sleep(150);
  56. printf("a");
  57. Sleep(150);
  58. printf("t");
  59. Sleep(100);
  60. printf("r");
  61. Sleep(150);
  62. printf("i");
  63. Sleep(150);
  64. printf("x");
  65. Sleep(150);
  66. printf(" ");
  67. Sleep(150);
  68. printf("h");
  69. Sleep(100);
  70. printf("a");
  71. Sleep(100);
  72. printf("s");
  73. Sleep(150);
  74. printf(" ");
  75. printf("y");
  76. Sleep(150);
  77. printf("o");
  78. Sleep(150);
  79. printf("u");
  80. Sleep(150);
  81. printf(".");
  82. Sleep(150);
  83. printf(".");
  84. Sleep(150);
  85. printf(".");
  86. Sleep(4000);
  87. printf("\r                                                           ");
  88. Sleep(100);
  89. printf("\rF");
  90. Sleep(100);
  91. printf("a");
  92. Sleep(100);
  93. printf("l");
  94. Sleep(100);
  95. printf("l");
  96. Sleep(100);
  97. printf("o");
  98. Sleep(100);
  99. printf("w");
  100. Sleep(100);
  101. printf(" ");
  102. Sleep(100);
  103. printf("t");
  104. Sleep(100);
  105. printf("h");
  106. Sleep(100);
  107. printf("e");
  108. Sleep(100);
  109. printf(" ");
  110. Sleep(100);
  111. printf("w");
  112. Sleep(100);
  113. printf("h");
  114. Sleep(100);
  115. printf("i");
  116. Sleep(100);
  117. printf("t");
  118. Sleep(100);
  119. printf("e");
  120. Sleep(100);
  121. printf(" ");
  122. Sleep(100);
  123. printf("r");
  124. Sleep(100);
  125. printf("a");
  126. Sleep(100);
  127. printf("b");
  128. Sleep(100);
  129. printf("b");
  130. Sleep(100);
  131. printf("i");
  132. Sleep(100);
  133. printf("t");
  134. Sleep(100);
  135. printf(".");
  136. Sleep(100);
  137. printf(".");
  138. Sleep(100);
  139. printf(".");
  140. Sleep(4000);
  141. printf("\r                                                           ");
  142. printf("\rKnock, knock, Neo.");
  143. Sleep(2000);
  144. printf("\a");
  145. Sleep(300);
  146. printf("\a");
  147. getche();
  148. }
  149. //---------------------------------------------------------------------------
  150.  
  151.  
Yorumlar (0)
Sadece kayıtlı kullanıcılar yorum yazabilir!
Son Güncelleme ( Pazartesi, 08 Ağustos 2011 18:18 )  
404 Not Found

Not Found

The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.