The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Structure not complited 2
By Guest on 16th January 2023 01:27:44 PM | Syntax: TEXT | Views: 9



New paste | Download | Show/Hide line no. | Copy text to clipboard
  1. #include<iostream>
  2. using namespace std;
  3. struct student;
  4. {
  5.         string name;
  6.         int age;
  7.         char gender;
  8.         float weight;
  9. }
  10. int main()
  11. {
  12.         int student temari[10];
  13.         cout<<"Ente the info about a student "<<endl;
  14.         for(int i=0;i<10;i++)
  15.         {
  16.                 cin>>temari[i].name;
  17.                 cin>>temari[i].age;
  18.                 cin>>temari[i].gender;
  19.                 cin>>temari[i].weight;
  20.         }
  21.  
  22. }



  • Recent Pastes
  • Questions
    13 hours 18 mins 59 secs ago
  • Adrs
    13 hours 24 mins 9 secs ago
  • Docs
    13 hours 24 mins 53 secs ago
  • Servs
    13 hours 25 mins 36 secs ago
  • Srvs
    13 hours 30 mins 25 secs ago