Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #define public
- #define class int
- #define Program main(void)
- #define static
- #define Main(x) (*foo)(void);
- #define SIZE 1024
- typedef char *String;
- void print(String str) { printf("%s \n", str); }
- String read() { String buff = (String) malloc(SIZE * sizeof(char));
- fgets(buff, SIZE * sizeof(char), stdin);
- return buff;
- }
- struct { void (*WriteLine)(String);
- String (*ReadLine)();
- } Console = {print, read};
- public class Program
- {
- public static void Main(String[] args)
- {
- Console.WriteLine("Hello World!");
- Console.ReadLine();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement