Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Criminal::Criminal()
- {
- name = NULL;
- crime = NULL;
- sentence = 0;
- cell = -1;
- }
- Criminal::Criminal(char* fNm, char* cRm, int timeRmn)
- {
- name = new(nothrow) char[strlen(fNm)]; // assigns name, crime and
- strcpy(name,fNm); // sentence time to inamtes
- crime = new(nothrow) char[strlen(cRm)]; // record
- strcpy(crime,cRm);
- sentence = timeRmn;
- cell = -1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement