這是一款可以支援新增聯絡人,刪除聯絡人,查詢聯絡人等多功能的**簿,有乙個高尚一點的名字是通訊管理系統,儘管這一部分**比較長,敲了乙個小時才敲完,但是內容比較簡單,是c++入門後可選擇敲的乙個程式。話不多說看**~
# include
# include
# define max 1000
using
namespace std;
struct person
;struct addressbooks
;void
showmenu()
void
addperson
(addressbooks * abs)
cout <<
"輸入有誤,請重新輸入!"
<< endl;
}int age;
cout <<
"請輸入年齡:"
<< endl;
cin >> age;
abs-
>personarray[abs-
>m_size]
.age = age;
string phone;
cout <<
"請輸入**號碼:"
<< endl;
cin >> phone;
abs-
>personarray[abs-
>m_size]
.phone = phone;
string homeplace;
cout <<
"請輸入家庭住址:"
<< endl;
cin >> homeplace;
abs-
>personarray[abs-
>m_size]
.addr = homeplace;
abs-
>m_size++
; cout <<
"當前已成功新增"
<>m_size<<
"名聯絡人"
("pause");
system
("cls");
}void
showperson
(addressbooks * abs)
else
}system
("pause");
system
("cls");
}int
i***ist
(addressbooks * abs, string name)
return-1
;}void
delete
(addressbooks * abs)
cout <<
"刪除成功!"
<< endl;
abs-
>m_size--;}
else
system
("pause");
system
("cls");
}void
search
(addressbooks * abs)
void
modify
(addressbooks * abs)
system
("pause");
system
("cls");
}void
allclean
(addressbooks * abs)
system
("pause");
system
("cls");
}int
main
(void)}
return0;
}```!
[開始介面]
![刪除聯絡人
![新增聯絡人]
鍊錶實現電話簿(C )
試驗3 簿管理系統 鍊錶實現 include include include include include include include 獲取當前時間 define name size 20 define number size 12 using namespace std 鍊錶結構 struc...
python 用字典做乙個電話簿 實現增刪改查
print 歡迎來到一次性的 簿 import pickle dict1 while true x input 請輸入要進行的操作 如 新建或修改為 1 查詢 2 刪除 3 儲存資料 序列化字典 with open addressbook.txt ab as io1 pickle.dump dict...
css製作一款相簿
這個是看了鬼佬的一篇文章之後參考他的 寫的,終於感覺到鬼佬的創意了.而同時感覺我們缺少的只是創意,而並不是技術,也許這個就是國家之間的差異吧.body imgh1 one one li a one a link,one a visited one a link img one a hover one...