-
Notifications
You must be signed in to change notification settings - Fork 0
가천대학교 윤성우 링크드리스트 #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
가천대학교 윤성우 링크드리스트 #52
Conversation
LJLee37
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
전체적으로 짜임새 있는 코드입니다. 메서드와 생성자 사용하시고 할당해제 잘 해주세요. 졸려서 피드백에 오타나 그런거 있을 수 있고 라인별 피드백이 짧은데 양해 바랍니다. 일찍 제출하시면 좋겠습니다.
| int DATA = 0; | ||
| struct List_node *NEXT_NODE; | ||
| }; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
생성자, 메서드 쓰세요.
| for(int j = 0; j < 4; j++){ | ||
| CURSOR = CURSOR -> NEXT_NODE; //CURSOR이 현재 가리키는 노드의 다음 노드를 가리킨다. | ||
| cout<<j+2<<"번째 노드에 저장된 데이터: "<<CURSOR->DATA<<""<<endl; //CURSOR이 가리키는 노드에 저장된 데이터값을 출력한다. | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
할당해제 하세요.
|
추가로, 파일명 안겹치게 수정 바랍니다. |
kimz1121
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
그럼 메서드 이전에 함수로 라도 구현하시면 좋을 것 같아요!
메서드 == 멤버 함수 거든요!
일단 함수로 구현하시면 나중에 메서드 구현하시기도 좋으실꺼예요!
함수로 만드셔야 할 내용은 인스턴스( == 복제된 노드 객체)를 생성하는 과정을
main에 사람손으로 일일이 쓰지 않고 함수 호출로 자동화 시키는 과정을 함수로 만드시면 좋을 것 같습니다...!😊😊😊
LJLee37
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
파일이 두 개로 되어있군요. 기존의 파일을 삭제해주시기 바랍니다.
No description provided.