entry-level here, forced to work in Delphi 5 (i know)
so i have got a working program that uses records that use pointers to point to the next record each
and i've got a program that uses classes
would it be SENSEFULL trying to replace the records from the first program with a class that does the exact same thing, which is storing a single dataset (e.g. a name) and pointing to the next instance of the class to create a linear database?
Name:
Anonymous2009-03-14 9:56
So you're making a linked list?
I don't think there would be any real difference in using a class as opposed to records(except for methods being inside/outside of the class/record). You could if you wanted to, but if you already have a working program, I'd leave it.
You are of course allowed to ignore my advice, since I study EE
Great, now your linked list uses n*4bytes more storage than before, and exactly what did you gain?
What do you even seek to gain? What is your use case? Why did you even post this here? You didn't expect REAL help, did you? Hahaha, you poor soul. Enjoy getting fired sometimes between now and the next three weeks. But don't come here crying then, you hear me?
IF YOU DONT POST THIS TO 5 BROS THEN YOU ARENT A BRO
Name:
Anonymous2009-03-14 10:03
>>4
fyi: student, writing his exam in about a week, there is no USE case. just trying to figure out how to create a class that uses pointers in any way.