Monday, November 17, 2008

IDEs are for Wimps

stephen@frank:~$ gcc -x c - << 'EOF'
> #include 
> 
> int main(int argc, char **argv)
> {
> printf("Hello World!\n");
> return 0;
> }
> EOF

1 comments:

rob said...

Not quite sure why, but I felt compelled to tell you that you can do this without << etc:

gcc -x c -
#include <stdio.h>
int main(int a, char** b)
{
printf("Hi\n");
return 0;
}
Ctrl-D