fork download
  1. /* Hw11_4abcde.c-錯誤版*/
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4.  
  5. int main(void)
  6. {
  7. struct time
  8. {
  9. int hour, minutes;
  10. double second;
  11. } start;
  12. printf("%d",sizeof(start));
  13.  
  14. start={12, 32, 25.49};
  15. printf("%02d:%d:%f \n", start.hour, start.minutes, start.second);
  16. system("pause");
  17. return 0;
  18.  
  19. }
  20.  
Success #stdin #stdout #stderr 0s 3296KB
stdin
Standard input is empty
stdout
1612:32:25.490000 
stderr
sh: pause: not found