test_newcall.c

来自「多媒体电话记录程序」· C语言 代码 · 共 32 行

C
32
字号
#include <stdio.h>#include <time.h>#include "../newcall.h"int main(){	char name[17];	char tel[31];	time_t t;	long dur;	int type;	while(1){		printf("type: ");		scanf("%d", &type);		if(type == -1)			break;		printf("name: ");		scanf("%s", name);		printf("tel: ");		scanf("%s", tel);		printf("dur: ");		scanf("%ld", &dur);					t = time(NULL);		newcall(name, tel, t, dur, type);		printf("is black : %s \n", is_blackname(tel) ? "Yes" : "No");	}	return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?