第13.5.4 小节代码 显示一个月的提醒列表
//This is a comment
//Author:King
//Time:2020/12/9
//Reference:C Programming:A Modern Approach,Second Edition
/*******************************************************************************
13.5.4 小节代码 显示一个月的提醒列表,本例中有使用二维数组、字符串等知识点
********************************************************************************/
#include <stdio.h>
#include <string.h>
//#include <stdbool.h> // C99 only
//#include <time.h>
//#include <stdlib.h>
#define MAX_REMIND 50 //最大提醒数量(行数)
#define MSG_LEN 60 //每条提醒中字符最大长度(列数)
/*函数声明*/
int read_line (char str[], int n); //把字符写入到字符串中,字符串最大可以读入n个字符
/*主函数*/
int main(void)
{
char reminders[MAX_REMIND][MSG_LEN +