Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.pascal.misc > Newsgroup comp.lang.pascal.delphi.misc

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-09-2005, 09:14 AM
Oliver Bleckmann
Guest
 
Posts: n/a
Default turbo pascal record question...

Hey there,
I have a little question for you,
how do I realise a progy, which stores an adressbook (name, city,
phone,etc.) in alphabetical order?
what record structur do i need (must be sortable) and how do i determin the
end of that record,
especially, when it is restored from a file (the eof thing, you know!)?


Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 05-09-2005, 11:41 AM
Maarten Wiltink
Guest
 
Posts: n/a
Default Re: turbo pascal record question...

"Oliver Bleckmann" <Oliver-Bleckmann@freenet.de> wrote in message
news:d5n9o7$vnn$1@newsserver.rz.tu-ilmenau.de...


> how do I realise a progy, which stores an adressbook (name, city,
> phone,etc.) in alphabetical order?


Sort the records before presentation.


> what record structur do i need (must be sortable)


Sorting algorithms depend only on the compareability of the elements.
Generic sorting procedures tend to take a list and a comparison
function as parameters.


> and how do i determin the end of that record, especially,
> when it is restored from a file (the eof thing, you know!)?


Use a while loop over (not Eof()).

Groetjes,
Maarten Wiltink


Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparing two tables with regard to authenticity =?iso-8859-1?q?Rune_Runnest=F8?= Newsgroup comp.soft-sys.sas 0 09-13-2006 09:03 AM
Re: UNIX datastep question Nordlund, Dan Newsgroup comp.soft-sys.sas 0 06-28-2006 04:02 AM
Re: Views and passes (was RE: Output last record of fantom by Paul M. Dorfman Newsgroup comp.soft-sys.sas 0 07-14-2005 04:40 AM
Re: Multiple record data problem and survival analysis Frank Schiffel Newsgroup comp.soft-sys.sas 1 05-11-2005 09:24 PM
Re: Cobol record REDEFINES equivalent in SAS observations Peter Crawford Newsgroup comp.soft-sys.sas 0 01-11-2005 03:32 PM



All times are GMT. The time now is 02:41 PM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.