본문 바로가기

전체 글52

입력된 수를 반대로 출력하기 bool reverse(int a){ int temp=0; while(a){ temp=temp*10+a%10; a/=10; } return temp; }// 123 -> 321 2015. 11. 4.
map,set,hash_map,hash_set map, set의 사용하는 경우 : 정렬된 상태로 자료 저장을 하고 싶을 때. hash_map, hash_set : 정렬이 필요 없으며 빠른 검색을 원할 때. 2015. 11. 1.
단순연결리스트 #include #include #include typedef struct list_node *list_pointer; /*단순연결 리스트에서 노드를 표현하는 구조체 선언- 맴버변수 두 개를 가진다.- 하나는 노드에 저장될 정수형 데이터, 다른 하나는 다음 순서에 올 노드의 주소값*/typedef struct list_node {int data;//노드에 저장될 데이터 (정수 데이터를 저장)list_pointer link;//다음 순서의 노드를 가르키는 링크 값(주소값) 링크 값. 리스트의 한개의 노드는 data와 link로 구성됨.}list_node; /*단순 연결리스트에 새로운 노드를 추가하는 함수 - list_pointer *target_list: 새로생성한 노드가 추가될 대상(Target)이 되는.. 2015. 10. 1.
Facebook friend api 변경사항 User IDs and FriendsGraph API v2.0 includes some changes to how user IDs and friends work in order to better protect people's info. This includes several changes:1. App-scoped User IDsFacebook will begin to issue app-scoped user IDs when people first log into an instance of your app coded against v2.0 of the API. With app-scoped IDs, the ID for the same user will be different between apps.No mat.. 2015. 2. 13.