Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Count to 10

Name: Anonymous 2010-06-17 15:14

Lets see if /prog/ can count to 10 in C. I'll start:

int main(void){

Name: Anonymous 2010-06-18 22:54

>>80
Note: it's doing it's job exactly as intended.

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.

Name: Anonymous 2010-06-19 0:02

>>82
It's doing its job exactly as intended.

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.

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

Name: Anonymous 2010-06-19 12:49

>>84
PUNCHLINE MY ANUS

Name: Anonymous 2010-06-19 13:14

>>86
Get the fuck out.

Name: Anonymous 2010-06-19 13:32

>>84,86-87
Hahahahaha.

Name: Anonymous 2010-06-19 14:26

>>87
SEFYIE1ZIEFOVVMK

Name: Anonymous 2010-06-19 14:34

>>89
Base64. How clever.

Name: Anonymous 2010-06-19 17:44

>>90
1c 05 cc 60 03 54

Name: Anonymous 2010-06-19 17:46

>>91,90
Sorry, I meant 04 04 84 eb 83 18 00 d5 12

Name: Anonymous 2010-06-21 5:19

potato

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

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

Name: Anonymous 2010-06-24 11:19

>>95
Oh, you probably want ASCII, go for mov al,30 instead then.

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

Name: Anonymous 2010-06-24 12:40

I like your useless semicolons. I thought your main programming goal was brevity, though.

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

Name: Anonymous 2010-06-24 12:53

>>97
Why would you do that to the poor argc? :-(

Name: Anonymous 2010-06-24 12:53

100 get

Name: Anonymous 2010-06-24 12:54

FUCK

Name: Anonymous 2010-06-24 15:18

>>31
Scortching

also
if( a > b )
  return( (0) ) ;

Name: Anonymous 2010-06-24 16:27

>>2

Listen here, Fuckface.

Name: Anonymous 2010-06-24 17:02

>>104
Fuck here, Listenface.

Name: Anonymous 2010-06-24 17:20

FACE HERE, FUCKLISTEN[/u]

Name: Anonymous 2010-06-24 17:21

FUCKING BBCODE!!!!

Name: Anonymous 2010-06-24 17:35

[sub][sub][o]CODING BBFUCK[/u][/sub][/sub]

Name: Anonymous 2010-06-24 17:36

oh lawdy epic failure

CODING BBFUCK

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List