Witam.
Mój program ma pobierać informacje o studencie i zwracać je przez parametr typu Student. Co w nim jest nie tak?
#include <iostream>
#include <string>
using namespace std;
struct Student {
string nazwisko;
string imie;
float ocenaDyp; //ocena na dyplomie
bool czyOplata;
};
void Wczytaj( Student dane )
{
cin >> dane.nazwisko;
cin >> dane.imie;
cin >> dane.ocenaDyp;
cin >> dane.czyOplata;
}
void Wyswietl( Student dane )
{
cout << dane.nazwisko;
cout << dane.imie;
cout << dane.ocenaDyp;
cout << dane.czyOplata;
}
int main()
{
Wczytaj();
Wyswietl();
}