删除书籍:
void CDelDlg::OnButton1() { // TODO: Add your control notification handler code here UpdateData(); int delbooknum=0; CString str;
extern booklist *head_book; booklist *q,*p=head_book; //MessageBox(head_book->ISBN); while(p->ISBN==m_isbn) { q=p; p=p->next; head_book=p; delbooknum++; delete q;
}
CString str1;
if(head_book->next!=NULL) { for(booklist *p=head_book;p;p=p->next) { if(p->next!=NULL&&p->next->ISBN==m_isbn)
{str1.Format("
书