Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //class functions
- #include <string>
- using namespace std;
- #include "class.h"
- bool record::load(string a, string b, double c, double d)
- {
- bool valid = true;
- if ((c >= 0) && (d >= 1000000000) && (d <= 1999999999))
- {
- balance = c;
- id = d;
- first = a;
- last = b;
- return true;
- }
- return false;
- }
- void record::retriveData(string& a, string& b, double& c, double& d)
- {
- a = first;
- b = last;
- c = balance;
- d = id;
- return;
- }
- double record::getId()
- {
- return id;
- }
- record::record()
- {
- first = "";
- last = "";
- balance = 0;
- id = 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement