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
By Guest on 16th January 2023 01:26:44 PM | Syntax: TEXT | Views: 4



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.         student temari1;
  13.         student temari2;
  14.         temari1.name="abebe";
  15.         temari1.age=21;
  16.         temari1.gender="M";
  17.         temari1.weight=65.3;
  18.         temari2.name="hiwot";
  19.         temari2.age=22;
  20.         temari2.gender="F";
  21.         temari2.weight=59.3;
  22.         cout<<temari2;
  23. }



  • Recent Pastes
  • Questions
    13 hours 28 mins 6 secs ago
  • Adrs
    13 hours 33 mins 16 secs ago
  • Docs
    13 hours 34 mins ago
  • Servs
    13 hours 34 mins 43 secs ago
  • Srvs
    13 hours 39 mins 32 secs ago