fork download
  1. // hw13.cpp : 定義主控台應用程式的進入點。
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "stdlib.h"
  6. #include "stdio.h"
  7.  
  8. struct student {
  9. int stu_total;
  10. int totalScore;
  11. int Score1;
  12. int Score2;
  13. int Score3;
  14. int Score4;
  15. int Score5;
  16. float ScoreAvg;
  17. };
  18.  
  19. FILE *fp;
  20.  
  21. void display(struct student);
  22. void display(struct student tempStu){
  23. printf("%d\t%d\t%d\t%d\t%d\t%d\t%d\t%.4f\n",\
  24. tempStu.stu_total,tempStu.totalScore ,tempStu.Score1, tempStu.Score2,
  25. tempStu.Score3, tempStu.Score4, tempStu.Score5,tempStu.ScoreAvg);
  26. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:4:20: fatal error: stdafx.h: No such file or directory
compilation terminated.
stdout
Standard output is empty