Advertisement
Guest User

Quell-Datei

a guest
Nov 14th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. //Autor: Mahir Turan
  2. //Datum: 14.11.2019
  3. //Prakitkum 06.1
  4. //Das Programm lässt den Nutzer Fächer und Noten eingeben, speichert diesen daraufhin und vergleicht sie zum Schluss
  5. //QUELL-DATEI.CPP
  6.  
  7.  
  8. #include <iostream>
  9. #include <string>
  10. #include <vector>
  11. #include "module.h"
  12.  
  13. using std::cin;
  14. using std::cout;
  15. using std::endl;
  16. using std::string;
  17. using std::vector;
  18.  
  19.  
  20. Module::Module(string n, float g)
  21. {
  22. g = getGrade();
  23. n = getName();
  24. }
  25.  
  26. float Module::getGrade() {
  27. //Getter-Funktion für die Note
  28. return grade;
  29. }
  30.  
  31. string Module::getName() {
  32. //Getter-Funktion für das Fach
  33. return name;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement