Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
User Journal

Journal JDWTopGuy's Journal: Check dis out 3

You know you wanna try it... go ahead. It's C, should compile fine with any C compiler.

#include <stdio.h>
 
int main() {
  char x[] = { 37,34,43,1,42,39,1,40,35,1,42,1,44,1 };
  int c;
 
  for( c = 0; c < 14; c++ ) {
    if( x[c + 1] == 1 )
      printf( "%c", ( ( ( x[c] * 2 ) ) + x[++c] ) );
    else
      printf( "%c", ( x[c] * 2 ) );
  }
 
  printf( "\n" );
 
  return 0;
}

(Yes, this is how bored I am.)

This discussion has been archived. No new comments can be posted.

Check dis out

Comments Filter:
  • Neutrino:~/Documents/compile jwm$ gcc jdw.c
    jdw.c:2: error: stray '\302' in program
    jdw.c:2: error: stray '\240' in program
    jdw.c: In function `main':
    jdw.c:4: error: stray '\302' in program
    jdw.c:4: error: stray '\240' in program
    jdw.c:5: error: stray '\302' in program
    jdw.c:5: error: stray '\240' in program
    jdw.c:6: error: stray '\302' in program
    jdw.c:6: error: stray '\240' in program
    jdw.c:7: error: stray '\302' in program
    jdw.c:7: error: stray '\240' in program
    jdw.c:8: error: stray '\302' in program
    jdw.c:8: error
  • It says JEFFISRAD! I knew it!

The biggest difference between time and space is that you can't reuse time. -- Merrick Furst

Working...