fork download
  1. /*prog2_1,第一個C語言*/
  2. #include<stdio.h>
  3. #include<stdlib.h>
  4. int main ( void )
  5. {
  6. int num;
  7. num = 2;
  8. printf("I have %d cats.\n",num);
  9. printf("you have %d cats,too.\n",num);
  10. system("pause");
  11. return 0;
  12. }
Success #stdin #stdout #stderr 0s 5280KB
stdin
Standard input is empty
stdout
I have 2 cats.
you have 2 cats,too.
stderr
sh: 1: pause: not found