Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ================================================
- // main.cpp
- //
- #include "headarh.hpp"
- PROGRAM
- BEGIN
- h0:
- UEBER VAR y = 5;
- y = y - 1;
- WRITE(y);
- IF (y == 1) GOTO h1;
- RETURN (y == 0) ? 0 : START;
- h1:
- WRITE("bang bang waka waka!");
- GOTO h0;
- END
- // ================================================
- // main.i
- int main()
- {
- h0:
- static int y = 5;
- y = y - 1;
- std::cout << y << std::endl;;
- if (y == 1) goto h1;
- return (y == 0) ? 0 : main();
- h1:
- std::cout << "bang bang waka waka!" << std::endl;;
- goto h0;
- }
- // ================================================
- // headarh.hpp
- #include <cstdlib>
- #include <iostream>
- #include <ctime>
- #define BEGIN {
- #define END }
- #define GOTO goto
- #define PROGRAM int main()
- #define VAR int
- #define START main()
- #define WRITE(xxx) std::cout << xxx << std::endl;
- #define IF if
- #define RETURN return
- #define UEBER static
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement