GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — cpp_modules/cpp05/ex02/src/RobotomyRequestForm.cpp at master · Thopterek/cpp_modules Expand file tree/ Copy pathRobotomyRequestForm.cppMore file actions 59 lines (51 loc) · 2.27 KB / Copy pathRobotomyRequestForm.cppFile metadata and controls59 lines (51 loc) · 2.27 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 /* ************************************************************************** */ /* */ /* ::: :::::::: */ /* RobotomyRequestForm.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: ndziadzi <[email protected]. +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/04/22 10:38:24 by ndziadzi #+# #+# */ /* Updated: 2025/04/22 11:20:41 by ndziadzi ### ########.fr */ /* */ /* ************************************************************************** */ #include "../inc/RobotomyRequestForm.hpp" RobotomyRequestForm::RobotomyRequestForm() : AForm("RobotomyRequestForm", 72, 45), target("") { std::cout << "RRF default constructor, most likely never called" << std::endl; } RobotomyRequestForm::RobotomyRequestForm(std::string set_target) : AForm("RobotomyRequestForm", 72, 45), target(set_target) { std::cout << "RRF construtor with name per subject" << std::endl; } RobotomyRequestForm::~RobotomyRequestForm() { std::cout << "RRF destructor" << std::endl; } RobotomyRequestForm::RobotomyRequestForm(const RobotomyRequestForm &other) : AForm(other), target(other.target) { std::cout << "RRF copy constructor" << std::endl; } RobotomyRequestForm &RobotomyRequestForm::operator=(const RobotomyRequestForm &other) { if (this != &other) { target = other.getTarget(); } std::cout << "RRF copy assingment operator" << std::endl; return (*this); } void RobotomyRequestForm::action() const { std::cout << "DRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR" << std::endl; std::cout << "* those were drilling noises *" << std::endl; std::srand(std::time(0)); if (std::rand() % 2) { std::cout << "Robotomy on " << getTarget() << " done succesfully" << std::endl; } else std::cout << "Robotomy on " << getTarget() << " failed" << std::endl; std::cout << "DRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR" << std::endl; } std::string const &RobotomyRequestForm::getTarget() const { return (target); } |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |