jelyslime

classFile

Feb 25th, 2019
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.08 KB | None | 0 0
  1. #include "myClass.h"
  2. #include <string>
  3. #include <iostream>
  4.  
  5. using namespace std;
  6.  
  7. myClass::myClass()
  8. {
  9.     bul = "*BLANK*";
  10.     eng = "*BLANK*";
  11. }
  12.  
  13. myClass::myClass(std::string bul, std::string eng)
  14. {
  15.     this->bul = bul;
  16.     this->eng = eng;
  17. }
  18.  
  19. void myClass::newWordTrans(std::string name, std::string eng)
  20. {
  21.     this->bul = bul;
  22.     this->eng = eng;
  23. }
  24.  
  25. void myClass::setBul(std::string bul)
  26. {
  27.     this->bul = bul;
  28. }
  29.  
  30. std::string myClass::getBul()const
  31. {
  32.     return this->bul;
  33. }
  34.  
  35. void myClass::setEng(std::string eng)
  36. {
  37.     this->eng = eng;
  38.  
  39. }
  40.  
  41. std::string myClass::getEng() const
  42. {
  43.     return this->eng;
  44. }
  45.  
  46. string myClass::engWordCheck() const{
  47.     return this->eng;
  48. }
  49.  
  50. std::string myClass::transToEng() const
  51. {
  52.     return this->eng;
  53. }
  54.  
  55. std::string myClass::bulWordCheck() const
  56. {
  57.     return this->bul;
  58. }
  59.  
  60. std::string myClass::transToBul() const
  61. {
  62.     return this->bul;
  63. }
  64.  
  65. void myClass::delBul()
  66. {
  67.     bul = "*BLANK*";
  68. }
  69.  
  70. void myClass::delEng()
  71. {
  72.     eng = "*BLANK*";
  73. }
  74.  
  75. std::string myClass::getToStr()
  76. {
  77.     //str = this->eng;
  78.     return this->eng;
  79. }
  80.  
  81. myClass::~myClass()
  82. {
  83. }
Add Comment
Please, Sign In to add comment