Advertisement
kaunas163

help20150325

Mar 25th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. struct StruktūrosPavadinimas
  6. {
  7.     string kodas;
  8.     int ivertinimas;
  9. };
  10.  
  11. int main()
  12. {
  13.     StruktūrosPavadinimas MasyvoPavadinimas[50];
  14.    
  15.     // įvedimo pvz
  16.     for (int i = 0; i < 5; i++)
  17.     {
  18.         cout << "Kodas: "; cin >> MasyvoPavadinimas[i].kodas;
  19.         cout << "Įvertinimas: "; cin >> MasyvoPavadinimas[i].ivertinimas;
  20.     }
  21.  
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement