Hi, I have a question. Is it possible to copy all contents from record to typed pointer which has same items? Example here:
program linked_list_queue;
type queue = ^myrecord;
myrecord = record
data: integer;
otherdata: string;
datadatadata: char;
next: queue;
end;
const head = nil;
tail = nil;
procedure add(argument: myrecord); {adds data to queue}
var mypointer: queue;
begin
new(mypointer);
{Question: How can I move data from argument to mypointer? Is it possible?}
{...}
end;
If yes, how can i do it?