Advertisement
Guest User

mehehehegovnokod

a guest
Aug 3rd, 2015
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.91 KB | None | 0 0
  1. // ================================================
  2. // main.cpp
  3. //
  4. #include "headarh.hpp"
  5.  
  6.  
  7. PROGRAM
  8. BEGIN
  9.     h0:
  10.         UEBER VAR y = 5;
  11.         y = y - 1;
  12.         WRITE(y);
  13.         IF (y == 1) GOTO h1;
  14.         RETURN (y == 0) ? 0 : START;
  15.     h1:
  16.         WRITE("bang bang waka waka!");
  17.         GOTO h0;
  18. END
  19.  
  20. // ================================================
  21. // main.i
  22.  
  23. int main()
  24. {
  25.     h0:
  26.         static int y = 5;
  27.         y = y - 1;
  28.         std::cout << y << std::endl;;
  29.         if (y == 1) goto h1;
  30.         return (y == 0) ? 0 : main();
  31.     h1:
  32.         std::cout << "bang bang waka waka!" << std::endl;;
  33.         goto h0;
  34. }
  35. // ================================================
  36. // headarh.hpp
  37. #include <cstdlib>
  38. #include <iostream>
  39. #include <ctime>
  40.  
  41. #define BEGIN {
  42. #define END }
  43. #define GOTO goto
  44. #define PROGRAM int main()
  45. #define VAR int
  46. #define START main()
  47. #define WRITE(xxx) std::cout << xxx << std::endl;
  48. #define IF if
  49. #define RETURN return
  50. #define UEBER static
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement