コード例 #1
0
ファイル: main.cpp プロジェクト: TheSpoke/piscine_cpp
void					test1(Bureaucrat &b, Form &f)
{
	std::cout << "\033[35mtest1: \033[0m" << std::endl;
	
	std::cout << b.getName() << "(" << b.getGrade() <<
		") trying to sign " << f.getName() << "(" << f.getSGrade() <<
		")" << std::endl;
	b.signForm(f);
	std::cout << std::endl;
	return ;
}
コード例 #2
0
ファイル: Bureaucrat.cpp プロジェクト: lguard/cpp-p
Bureaucrat::Bureaucrat(Bureaucrat const &src) : Name(src.getName()), Grade(src.getGrade()) {}
コード例 #3
0
ファイル: Bureaucrat.cpp プロジェクト: po-connor/Piscine_CPP
Bureaucrat::Bureaucrat(Bureaucrat const & src) : _name(src.getName()) {
	*this = src;
	return;
}
コード例 #4
0
ファイル: Bureaucrat.cpp プロジェクト: NegMozzie/42
Bureaucrat::Bureaucrat(Bureaucrat &src) : name(src.getName()) {
    this->grade = src.getGrade();
}
コード例 #5
0
ファイル: Bureaucrat.cpp プロジェクト: Elytum/PISCINE_CPP
Bureaucrat::Bureaucrat( Bureaucrat const & cpy) : name(cpy.getName()), grade(cpy.getGrade())	{
	checkGrade();
}