Guest User

Untitled

a guest
Feb 18th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. #define _CRT_NO_SECURE_WARNING_
  2. #include <iostream>
  3. #include "CRA_Account.h"
  4. #include <cstdio>
  5. #include <cstring>
  6. namespace sict
  7. {
  8. void CRA_Account::set(const char F_Name[], const char G_Name[], int sin)
  9. {
  10. strcpy(Family_name, F_Name);
  11. strcpy(Given_name, G_Name);
  12. SIN_number = sin;
  13. }
  14.  
  15. bool CRA_Account::isEmpty () const
  16. {
  17. if (SIN_number >= min_sin && SIN_number <= max_sin)
  18. {
  19. return false;
  20. }
  21. else
  22. {
  23. return true;
  24. }
  25. }
  26.  
  27. void CRA_Account::display() const
  28. {
  29. std::cout << "Family Name: " << Family_name << std::endl;
  30. std::cout << "Given Name : " << Given_name << std::endl;
  31. std::cout << "CRA Account: " << SIN_number << std::endl;
  32. }
  33. }
Add Comment
Please, Sign In to add comment