Загрузка данных


#include <iostream>
#include <string>
using namespace std;

struct Student
{
    string name;  
    int age;      
    double grade;     
    
    void Print()
    {
        cout << "Name: " << name << endl;
        cout << "Age: " << age << endl;
        cout << "Grade: " << grade << endl;
    }
    
    Student()
    {
        name = "Умник";
        age = 100;
        grade = 2;
    }
    
    Student(string _name, int _age, double _grade)
    {
        name = _name;
        age = _age;
        grade = _grade;
    }
};

int main()
{
    Student s1; 
    cout << "студент:" << endl;
    s1.Print();
    
    cout << endl;
    
    Student s2("Студет", 100, 2);  
    cout << "Student 2:" << endl;
    s2.Print();
    
    return 0;
}