Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. /*
  2. * File: Entry.cpp
  3. * Author: Dahlia
  4. *
  5. * Created on March 21, 2018, 8:37 PM
  6. */
  7. #include "Entry.h"
  8. #include <string>
  9. using namespace std;
  10.  
  11. Entry::Entry(string entry)
  12. {
  13. if(entry.size()==1)
  14. st = en = entry[0];
  15. else if(entry.size()==3)
  16. {
  17. st = entry[0];
  18. en = entry[2];
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement