// 회원삭제 public void deleteMember() { print.enterIdForDelete(); ID = Console.ReadLine(); if (ID == "b") { run.startMember(); } bool existCheck = sd.selectForExists("member", "ID", ID); if (!existCheck) // MemberList에 ID가 없을경우 { print.notFindIdMessage(); deleteMember(); } while (true) { print.enterPwForDelete(); PW = showStarPW(); if (PW == "b") { run.startMember(); } // select : ID 필드에서 입력된 ID에 해당하는 PW를 찾는다 if (PW == sd.select("member", "ID", ID, "PW")) { sd.delete("member", "ID", ID); print.deleteSuceessMessage(); run.startMember(); } else { print.discordPwMessage(); continue; } } }