Does anyone have any idea why this code doesn't work.
It takes in the data, but it only spits out the number 0 in the table.
I'm not sure why it's happening.
oh sorry - that was my bad. while i was pasting the code - i was removing some of the comments and i accidently removed that line, rewrote it and forgot to put the * in.
Line 31 reads company *pMicrosoft = new company ;
Why pMicrosoft++ ? pMicrosoft is not a pointer to an array
In any case you aren't resetting its location after the input loop
And you need to delete everything you new