Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #include <fstream>
  2. #include <iostream>
  3. #include <cstring>
  4. #include <string>
  5. #include <iomanip>
  6. #include <cstdlib>
  7. #include "student.h"
  8.  
  9. string student::setID(string id)
  10. {
  11. stuID = id;
  12. }
  13.  
  14. string student::setName(string name)
  15. {
  16. cout << name << endl;
  17. stuName = name;
  18. cout << stuName << endl;
  19. }
  20.  
  21. int student::setHPScores(int hpScores[])
  22. {
  23. for (int i=0;i<10;i++)
  24. {
  25. stuHomeworkParticipationScores[i]=hpScores[i];
  26. cout << hpScores[i] << endl;
  27. }
  28. }
  29.  
  30. int student::setTestScores(int tScores[])
  31. {
  32. for (int i=0;i<4;i++)
  33. {
  34. stuTestScores[i]=tScores[i];
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement