robot_name: iteration 1
This commit is contained in:
parent
a882941d58
commit
7339e6a8bc
2 changed files with 72 additions and 0 deletions
25
cpp/robot-name/robot_name.h
Normal file
25
cpp/robot-name/robot_name.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#pragma once
|
||||
|
||||
#define EXERCISM_RUN_ALL_TESTS
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace robot_name {
|
||||
|
||||
typedef std::string name_t;
|
||||
|
||||
|
||||
class robot
|
||||
{
|
||||
name_t name_;
|
||||
|
||||
public:
|
||||
|
||||
robot();
|
||||
|
||||
void reset();
|
||||
|
||||
const name_t &name() const;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue