Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <cstdlib>
- #include <cstring>
- #include "Criminal.h"
- using namespace std;
- int main()
- {
- char Name[30];
- char Crime[30];
- int Months;
- int Cell;
- typedef char* Ptr;
- Ptr crimPtr[200];
- ifstream ifs;
- ifs.open("crims.txt"); // name of file is hardcoded so no error checking needed
- ifs >> Name;
- cout << Name << endl;
- Ptr = new(nothrow) Criminal(Name, Crime, Months, Cell);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement