void InputMember(BAN MemArray[],int *piIndex,int iArraySize) { if(*piIndex >= iArraySize) { printf("Can't Add New Member, Buffer is full\n"); return; } InputMemberData(&MemArray[*piIndex]); ++(*piIndex); }
//search void Modify(BAN ban[],int size) { int iSearch = Search_name(ban,&size); if(iSearch!=-1) { FreeMemberData(&ban[iSearch]); InputMemberData(&ban[iSearch]); }else { printf("Not Found"); } }
void ModifyMember(LINKEDLIST* list){ char temp[1024] = { ' ' }; printf("찾을 값 : "); gets_s(temp, sizeof(temp)); fflush(stdin); NODE * pFindFlag = SSearchName(list, temp); if (pFindFlag == NULL){ printf("그런거 없다."); return; } InputMemberData(&pFindFlag); }
void ModifyVideo(LINKEDLIST* list){ int temp = 0; printf("찾을 값 : "); scanf_s("%d", &temp); fflush(stdin); NODE * pFindFlag = SSearchNumber(list, temp); if (pFindFlag == NULL){ printf("그런거 없다."); return; } InputMemberData(&pFindFlag); }
void InputMember(LINKEDLIST* list){ NODE * pNode = (NODE *)malloc(sizeof(NODE)); InputMemberData(&pNode); list->AddBottom(list, (void *)pNode->pData); }