1. 126.
    0
    #include <iostream>
    2. include <cstring>

    using namespace std;
    class human{
    private:

    int id;
    char name[20];
    float weight;
    int age;

    public:

    void setid(int id1){
    id = id1;
    }

    void setname(char* name1){
    strcpy(name, name1);
    }

    void setweight(float weight1){
    weight = weight1;
    }

    void setage(int age1){
    age = age1;
    }

    int getage(){
    return age;
    }

    float getweight(){
    return weight;
    }

    char* getname(){
    return name;
    }

    int getid(){
    return id;
    }

    };

    int main(){
    human human1;

    human1.setname("ali");
    human1.setid(120);
    human1.setweight(60.5);
    human1.setage(30);

    cout << "human1s name is "<< human1.getname() << endl;
    cout << "human1s age is "<< human1.getage() << endl;
    cout << "human1s id is "<< human1.getid() << endl;
    cout << "human1s weight is "<< human1.getweight() << endl;
    cin.get();
    cin.get();
    return 0;
    }

    şunları düzgünce ayarla orda senden ıstenılen sekılde heralde onuda yaparsın.

    /*
    //case 1 - interchange
    date(){
    cout<< "enter day month year" << endl;

    cin >> day >> month >> year;
    }
    */

    //case 2 - interchange

    şu şekil case leri unutma

    class ı boyle olustur sora cagır calıstır.
    ···
   tümünü göster