Created
May 3, 2017 19:28
-
-
Save yifeiyin/c4f77a62a894dfc4b0c766085f31c139 to your computer and use it in GitHub Desktop.
Flashcards
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
Class Card | |
{ | |
private: | |
string word; | |
string hint; | |
string * tags; | |
public: | |
Card(string _word, string _hint = "", string * _tags = nullptr); | |
~Card(); | |
string GetWord(); | |
string GetHint(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
Class Pile | |
{ | |
private: | |
string name; | |
int length; | |
Card * cards; | |
string notes; | |
public: | |
Pile(); | |
~Pile(); | |
string & GetName(); | |
int & GetLength(); | |
Card & GetCard(int index); | |
string & Notes(); | |
bool isEmpty(); | |
int isExist(string _word); | |
int isExist(Card & _card); | |
bool Add(Card _card); | |
bool Delete(Card & _card); | |
bool Delete(string _word); | |
void ClearAll(); | |
void Sort(); | |
void Shuffle(int seed = 0); | |
bool Save(string fileName = "untitled.txt"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment