c语言程序设计,字符串模块
c语言程序设计,字符串模块
日期:2017-12-14 10:33:02 人气:1
#include
#include
int main(void)
{
unsigned int i,j;
char soustr[80],desstr[80];//定义两个字符型数组,长度都为80
gets(soustr);//读取第一行输入,即敲下回车键之前的输入,存到sourtr中
gets(desstr);//读取另一行输入,并存到desstr数组中
i = strlen(soustr);//获得soustr数组内元素个