Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #include<iostream>
  2. #include<cstdlib>
  3. #include <conio.h>
  4. using namespace std;
  5.  
  6. struct Student
  7. {
  8. char Imie[20];
  9. char Nazwisko[20];
  10. float EgzaminMatematyka;
  11. float EgzaminFizyka;
  12. float EgzaminInformatyka;
  13. char JakiStudent[30];
  14. void func();
  15. }
  16. Student1 = {"Wacek", "Jankowski", 5, 5, 5, "bardzo dobry student"};
  17. int main(){
  18.  
  19. Student1.func();
  20. cout << endl << "Naciśnij Klawisz...";
  21. getch();
  22. return 0;
  23. }
  24. void Student::func()
  25. {
  26. cout<<endl<<Imie<<" "<<Nazwisko<<" "<<EgzaminMatematyka<<" "<<EgzaminFizyka<<" "<<EgzaminInformatyka<<" "<<JakiStudent;
  27. return;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement