Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4095
Number of posts: 14004

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Record.. Posted by singga on 4 Nov 2009 at 9:07 AM
Hiya.. sorry for toubling you guys again
i would like to ask something about Record:
what can i do to make the field of the record be variable?
var file : string;

begin
   readln(file);
   student.file := 'HA';
end.

thanks you all you guys help ><"
Report
Re: Record.. Posted by Atex on 4 Nov 2009 at 9:12 PM
: Hiya.. sorry for toubling you guys again
: i would like to ask something about Record:
: what can i do to make the field of the record be variable?
:
: var file : string;
: 
: begin
:    readln(file);
:    student.file := 'HA';
: end.
: 
:
: thanks you all you guys help ><"

I'm not sure what mean here...but, all fields of a record are variables of some sort... unless is declared as a const... Could you be more explicit ?




 

Recent Jobs