how i can do validation on this code
help please
#include"person.h"
#include<string.h>
#include<iostream>
using namespace std;
void person::setid(int id)
{
this->id = id;
}
void person::setpassword(string password)
{
this->password = password;
}
void person::setname(string name)
{