编写一个C语言函数,接收6行用户输入的文本并把输入的行保存为6个单独的字符串。#include<stdio.h>#define
#include <stdio.h>
#define LSIZE 100
int main()
{
char (*sentence)[LSIZE],a[6][LSIZE];
int i;
printf("Please enter 6 lines of files:\n");
sentence=a;
for(i=0; i<6; i++)
{
gets(a[i]);
}
for(i=0; i<6; i++)
printf("The %d line is :%s\n",i+1,a[i]);
return 0;
}