33 lines
514 B
C++
33 lines
514 B
C++
#include <string>
|
|
#include <cstdint>
|
|
//#ifndef FRAMEWORK_H
|
|
//# define FRAMEWORK_H
|
|
//# include <A.h>
|
|
//# include <B.h>
|
|
//# include <C.h>
|
|
//#endif
|
|
|
|
#pragma once
|
|
class user
|
|
{
|
|
private:
|
|
std::string name = "";
|
|
char age = 0;
|
|
uint32_t id = 0;
|
|
public:
|
|
user() {};
|
|
user(std::string name, char age)
|
|
{
|
|
this->name = name;
|
|
this->age = age;
|
|
}
|
|
user(uint32_t id)
|
|
{
|
|
this->id = id;
|
|
}
|
|
std::string getName() const { return name; }
|
|
char getAge() const { return age; }
|
|
uint32_t getId() const { return id; }
|
|
};
|
|
|