Count to 10
1
Name:
Anonymous
2010-06-17 15:14
Lets see if /prog/ can count to 10 in C. I'll start:
int main(void){
81
Name:
Anonymous
2010-06-18 22:54
>>80
Note: it's doing it's job exactly as intended.
82
Name:
Anonymous
2010-06-18 23:15
>>81
I don't know what you think syntax highlighting is for, but most people would say it's to make code easier to read. It fails miserably.
83
Name:
Anonymous
2010-06-19 0:02
>>82
It's doing its job exactly as intended.
84
Name:
Anonymous
2010-06-19 1:27
>>83
If you're expecting a set-up so you can deliver some kind of punchline, you aren't going to get it. Dipshit.
85
Name:
Anonymous
2010-06-19 12:35
print 1
print 2
print 3
print 4
print 5
print 6
print 7
print 8
print 9
print 10
86
Name:
Anonymous
2010-06-19 12:49
87
Name:
Anonymous
2010-06-19 13:14
88
Name:
Anonymous
2010-06-19 13:32
89
Name:
Anonymous
2010-06-19 14:26
90
Name:
Anonymous
2010-06-19 14:34
91
Name:
Anonymous
2010-06-19 17:44
92
Name:
Anonymous
2010-06-19 17:46
>>91,90
Sorry, I meant
04 04 84 eb 83 18 00 d5 12
93
Name:
Anonymous
2010-06-21 5:19
potato
94
Name:
Anonymous
2010-06-24 11:02
2000 hrs in mspaint nano
section .text
global _start
_start:
mov esp, 0x31
loop:
mov eax, 4
mov ebx, 1
cmp esp, 0x3a
jnl bmsg
mov dword [msg], esp
mov dword [msg+1], 0xa
mov ecx, msg
mov edx, 2
int 0x80
inc esp
jmp loop
bmsg:
mov dword [msg], 0x31
mov dword [msg+1], 0x30
mov dword [msg+2], 0xa
mov ecx, msg
mov edx, 3
int 0x80
kill:
mov eax, 1
mov ebx, 0
int 0x80
section .bss
msg: resw 3
95
Name:
Anonymous
2010-06-24 11:18
>>94
DOSSEG
.MODEL TINY
.CODE
ORG 100h
s:
pusha
mov al,0
mov ah,0eh
l:
inc al
int 10h
cmp al,0ah
jne l
popa
END s
96
Name:
Anonymous
2010-06-24 11:19
>>95
Oh, you probably want ASCII, go for
mov al,30 instead then.
97
Name:
FrozenVoid
2010-06-24 12:34
#include "stdio.h"
#define br break
main(int argc, char**argv, char**envp){
switch(argc){
case 1:;for(argc=0;argc<10;printf("%d\n",++argc));br;
case 2:;printf("Have you read your %s today?",argv[1]);br;
case 3:;printf("%s is the new %s",argv[1],argv[2]);br;
default:;argc=0;puts("Secret environment data:\n\n\n");
for(;envp[argc];printf("\t%s\n", envp[argc++]));br;
}}
__________________
Orbis terrarum delenda est
98
Name:
Anonymous
2010-06-24 12:40
I like your useless semicolons. I thought your main programming goal was brevity, though.
99
Name:
FrozenVoid
2010-06-24 12:50
>>98 semicolons are great when i type it in one big line.
The post was formatted for /prog/ viewing pleasure.
C:\Program Files\tcc>test Facebook Compuserve
Facebook is the new Compuserve
C:\Program Files\tcc>test Slashdot
Have you read your Slashdot today?
__________________
Orbis terrarum delenda est
100
Name:
Anonymous
2010-06-24 12:53
>>97
Why would you do that to the poor
argc? :-(
101
Name:
Anonymous
2010-06-24 12:53
100 get
102
Name:
Anonymous
2010-06-24 12:54
FUCK
103
Name:
Anonymous
2010-06-24 15:18
>>31
Scortching
also
if( a > b )
return( (0) ) ;
104
Name:
Anonymous
2010-06-24 16:27
>>2
Listen here, Fuckface.
105
Name:
Anonymous
2010-06-24 17:02
>>104
Fuck here, Listenface.
106
Name:
Anonymous
2010-06-24 17:20
FACE HERE, FUCKLISTEN [/u]
107
Name:
Anonymous
2010-06-24 17:21
FUCKING BBCODE!!!!
108
Name:
Anonymous
2010-06-24 17:35
[sub] [sub] [o] CODING BBFUCK [/u] [/sub] [/sub]
109
Name:
Anonymous
2010-06-24 17:36
oh lawdy epic failure
CODING BBFUCK
Newer Posts