lets not start a debate here,
Ok, i might be wrong here but please let's ignore that remark for a (small) moment.
but what I was trying to say is he needs some special tools/techniques (or whatever you name it), to facilitate the work with this task;
That's correct.
I was not pointing to C/C++ as better language then pascal but I was trying to say that this is more complicated than what he learned/taught so far.
I agree to the latter. I was not starting a debate on what is the better language, rather the solution used. See also below.
BTW, classes/records... are all data structures and pointers are way to fine access those data
Effectively and in the end all stored data is accessed using pointers, even if it doesn't show.
But that is imo of a whole other category then reading data from a file, interpreting the data and storing all the data inside a linked list.
As far as i am able to tell from the assignment (but google translate might have let me down) nowhere is it mentioned that _all_ the data has to be stored into memory.
However the assignment does clearly explain how data is being stored and how it needs to be interpreted. The use of (pascal) records is merely a means to be able to (temporary) store the data in order to easy access for processing such as for display. That 'internal' storage into records is a step that could have been skipped over all together, at least on the first run.
If you would start by simply interpreting the data on file-read and output things as you go along, then the assignment would have made much more sense from a newbie point of view.
Besides that, the need to use records and store all the data into memory might have been something you would have thought about when doing the first part, as the first part is tedious and will look ugly (source-code wise).
Then you would be able to take apart the reading routines from the display routines, which again imo would end in a much clea(r/n)er approach and one that could actually made sense to OP.
Programming is about interpreting difficult problems/assignments and breaking them down into smaller pieces which the mind is still able to comprehend and your skills able to master. If that fails, you need to take a step back, not introduce even more difficult concepts such as storing records into linked lists or using classes and objects.(just using those as an example).
If you do introduce new concepts, then you have to make sure to master those before actually using them as a solution for whatever problem. That's a learning process that for one person could take ages, while another is able to grasp when just having read some details from a manual.
Please don't take me wrong here, as rvk and others did/doing a splendid job which i couldn't have done any better. But as you might have seen from OP reactions, he still doesn't seem to actually get it, which in the end is all that matters.
There you have it, for my 2 cents
