Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _CRT_NO_SECURE_WARNING_
- #include <iostream>
- #include "CRA_Account.h"
- #include <cstdio>
- #include <cstring>
- namespace sict
- {
- void CRA_Account::set(const char F_Name[], const char G_Name[], int sin)
- {
- strcpy(Family_name, F_Name);
- strcpy(Given_name, G_Name);
- SIN_number = sin;
- }
- bool CRA_Account::isEmpty () const
- {
- if (SIN_number >= min_sin && SIN_number <= max_sin)
- {
- return false;
- }
- else
- {
- return true;
- }
- }
- void CRA_Account::display() const
- {
- std::cout << "Family Name: " << Family_name << std::endl;
- std::cout << "Given Name : " << Given_name << std::endl;
- std::cout << "CRA Account: " << SIN_number << std::endl;
- }
- }
Add Comment
Please, Sign In to add comment