#include <iostream>
#include <stdio.h>
#include <string>
class Humen {
private:
    std::string name;
    std::string job;
    int age;
    std::string gender;
public:
    Humen(std::string job,int age,std::string gender){
        this->job=job;
        this->age=age;
        this->gender=gender;
    };
    void say(){
        std::cout << "你好!";
        std::cout << "我的性别是";
        std::cout << this->gender;
        std::cout << "!." << std::endl;
        std::cout << "我的年齡是";
        std::cout << this->age;
        std::cout << "." << std::endl;
        std::cout << "我的职业是";
        std::cout << this->job;
        std::cout << "." << std::endl;
    }
};
int main() {
    printf("Hello world!\n");
    Humen Ohsuga_Haruhisa("下ネタリスト",13,"男");
    Ohsuga_Haruhisa.say();
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: