Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- struct hallgatok {
- int matek, tesi, fizika;
- char nev[30];
- };
- int main() {
- setlocale(LC_ALL, "Hun");
- int i;
- hallgatok a[20];
- for (i = 0; i < 20; i++) {
- cout << "Adja meg a " << i + 1 << ".tanuló nevét" << endl;
- cout << i + 1 << ".tanuló neve: ";
- fflush(stdin);
- cin.getline(a[i].nev, 30);
- cout << endl;
- cout << "Adja meg a " << i + 1 << ". tanuló matek jegyét" << endl;
- cout << i + 1 << ".tanuló matekjegye: ";
- cin >> a[i].matek;
- cout << endl;
- }
- system("Pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement