Im new to C++ and I have decided to do a little car project as something to do.
Basically I want to store Cars in a text file and then display them, which I have done. The problem is that I want the array of cars to be 30 so when I run the program it prints random numbers to fill up the spare spaces in the array.
How do I go about fixing this. Someone said something about a pointer and have a number at the top of the text file so it can work out how many cars there are. Also someone mentioned a Dynamic Array.
Please help. Been stuck on this for a week now.