- 论坛徽章:
- 0
|
没有问题呀。
- [0 jimmy@bogon hello]$ cat hello.c
- #include <stdio.h>
- #include <stdlib.h>
- #include <unistd.h>
- int main(int argc, char **argv)
- {
- printf("hello.\n");
- return 0;
- }
- [0 jimmy@bogon hello]$ gcc hello.c
- [0 jimmy@bogon hello]$ ./a.out #
- hello.
- [0 jimmy@bogon hello]$ ./a.out &
- [1] 3252
- [0 jimmy@bogon hello]$ hello.
- [1]+ Done ./a.out
- [0 jimmy@bogon hello]$ ./a.out ->
- bash: syntax error near unexpected token `newline'
- [0 jimmy@bogon hello]$ uname -a
- Linux bogon 2.6.21-7.fc7xen #1 SMP Tue Feb 12 12:32:24 EST 2008 i686 i686 i386 GNU/Linux
- [0 jimmy@bogon hello]$
复制代码 |
|