Exemple #1
0
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 ;
}
Exemple #2
0
Form::Form(Form const & src): m_name(src.getName()), m_sgrade(src.getSGrade()), m_xgrade(src.getXGrade())
{
	*this = src;
	return;
}