Hello I am trying to finish this program for a class moving lists to different files and such. i have gotten a majority of it done but the final part is messing me up.
My code is:
int main()
{
ifstream InputLicense;
SortedList SortedLicense;
int ReadLicense;
string ReadName;
ofstream OutputList;
InputLicense.open("licensesa.txt");
if (!InputLicense)
{
cout << "Can't open file licensesa.txt" << endl;
return 1;
}
OutputList.open("licenselist.txt");
InputLicense >> ReadLicense;
while (InputLicense && !SortedLicense.IsFull())
{
if (!SortedLicense.IsThere(ReadLicense))
{
SortedLicense.Insert(ReadLicense);
There is obviously some more info in .h files but what i keep getting is
"12091 Aikman, Thomas
18327 Aikman, Thomas
22348 Aikman, Thomas
28173 Aikman, Thomas
29106 Aikman, Thomas
30945 Aikman, Thomas
38456 Aikman, Thomas
39504 Aikman, Thomas
40593 Aikman, Thomas
48372 Aikman, Thomas
49349 Aikman, Thomas
50505 Aikman, Thomas
51093 Aikman, Thomas
60192 Aikman, Thomas
72345 Aikman, Thomas
72381 Aikman, Thomas
77463 Aikman, Thomas
82374 Aikman, Thomas
88384 Aikman, Thomas
91823 Aikman, Thomas
"
I know i kind of butchered posting this but if anyone can help or let me know a better way to post it please let me know! Thanks a lot for reading!