void linked_list::insert(int d, double c, linked_list_iterator pos)

{

node* A=pos.current;

A->next = new node(d, c, A->next, pos.current);

++pos;

}


링크드리스트 과제하는데 자꾸 초기화되는데

저 pos를 어케 레퍼런스로 바꿔요? 레퍼런스 아니더라도 초기화 안되고 값 유지되게하는법점