Skip to content

Instantly share code, notes, and snippets.

@coligne
Created April 5, 2018 04:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coligne/0e253cc29d1847a6d854d493609071fa to your computer and use it in GitHub Desktop.
Save coligne/0e253cc29d1847a6d854d493609071fa to your computer and use it in GitHub Desktop.
性格によって話しかけた時の反応が変わるヘッダ
//Person2.hpp
#include <iostream>
enum Character {Cheerful, Gloomy};
class Person{
private:
Character _Char;
public:
Person(Character character);
~Person();
void Talk_To();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment