K
Kay
I have a problem in inserting items in linked list. Hence, there are
different way to insert the items to the list. The first one is loading
data form a txt file(1). And the second one is input from keyboard. I
have done the first part. I have got a question in second part. Do I
need to continue the insertion by using the (1) linked list and its
position ? If yes, how to return the ptr and list position ?
Can I do sth like this ? If yes, how can I call back the same list and
oposition in other methods. If no, how can I insert other new items in
the same list by using keyboard ?
List * ReturnPtr( List * l){
return l;
}
Positino ReturnPositino( Position p){
return p;
}
different way to insert the items to the list. The first one is loading
data form a txt file(1). And the second one is input from keyboard. I
have done the first part. I have got a question in second part. Do I
need to continue the insertion by using the (1) linked list and its
position ? If yes, how to return the ptr and list position ?
Can I do sth like this ? If yes, how can I call back the same list and
oposition in other methods. If no, how can I insert other new items in
the same list by using keyboard ?
List * ReturnPtr( List * l){
return l;
}
Positino ReturnPositino( Position p){
return p;
}