printf("\n");
break;
case 2:
case 3:
fp = fopen(argv[2], "r");
if(fp == NULL) {
printf("Can't open %s for reading.\n", argv[2]);
exit (1);
}
while((dec = fgetc(fp)) != EOF) {
if(dec != 10) {
if(option == 3) printf("%c:", dec);
for(i=7;i>=0;i--)
printf("%d", dec % 2), dec /= 2;
printf(" ");
}
}
printf("\n");
break;
default:
printf("Woot");
}
return 0;
}
Name:
Anonymous2007-01-01 0:39
hmm. interesting. im curious how the binary system works. im planning on becoming a binary programmer someday.
Name:
Anonymous2007-01-01 6:21
Actually I know someone who had to program shit in binary: he had to flip switches on some device or something to enter the opcodes for ASM. It sucked, he finally gave in and bought a keyboard or something.
Name:
Anonymous2007-01-01 6:32
Actually I know someone who had to program shit in Java: he had to use a fucked up over-engineered OO paradigm or something to do anything useful. It sucked, he finally gave in and used Ruby or something.
Name:
Anonymous2007-01-01 18:02
Actually i know someone who had to program shit in Whitespace: he had to use an unreadable source or something. It sucked, he finally gave up and broke his spacebar.
Name:
Anonymous2007-01-01 18:22
Actually I know someone who had to program shit in Python: he had to bang his tabulation key or something to enter the calls to methods. It sucked, he finally gave in and used Common Lisp or something.
Name:
Anonymous2007-01-01 19:38
Actually, I once had to program shit in binary: I had to enter MIPS op codes manually as input into a simulation of a processor I made in a FPGA program.
Name:
Anonymous2007-01-01 22:15
Actually I know someone who had to program shit in Common Lisp: he had a hundred nested parens or something to print prime numbers. It sucked, he finally gave in and used Python or something.
Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy