Toggle navigation
Courses
Questions
Tags
Users
期末考題目-Question 1
2
like
0
dislike
419
views
(40%)請寫一個通訊錄的程式,該程式需至少包含以下功能
1. 能夠用中文儲存人名、電話以及地址
2. 有新增、修改以及刪除功能
3. 要有搜尋功能
4. 要能顯示功能選單
final
exam
[Exam]
asked
Jan 19, 2018
in
2017-1 程式設計(一)AD
by
楊修俊
(
30k
points)
ID: 43447 -
Available when:
2018-01-19 18:30
-
Due to:
2018-01-19 21:30
|
419
views
comment
Please
log in
or
register
to add a comment.
5
Answers
0
like
0
dislike
Hidden content!#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
void menu()
{
printf("1. add\n");
printf("2. alter\n");
printf("3. del\n");
printf("4. search\n");
printf("5. exit\n");
}
int main()
{
char name[1000],tel[1000],addr[1000],temp[1000],str[1000];
int num,n,i,j;
FILE *in , *out;
menu();
scanf("%d",&num);
while(num<5)
{
switch(num)
{
case 1: