网问答>>C语言算法问题,求大神解答,给出代码?
问题
已解决

C语言算法问题,求大神解答,给出代码?

时间:2020-10-23 22:45:48
设s=l AM A STUDENT,t=GOOD ,q=WORKER. 求: strlenth(s),strlength(t), substring(s,8,7), substring(t,2,1),index(s,A),index(s,t),concat(substring(s,6,2),concat(t,substring(s,7,7))).
最佳回答
#includestdio.h#includestring.hvoid main(){char s[100] = "I AM A STUDENT";char t[100]="GOOD";char q[100]="WORKER";printf("%d %d %s %s",strlenth(s), strlength(t), substring(s,8,7), substring(t,2,1));printf("%s %s %s", index(s,"A"), index(s,t), concat(substring(s,6,2),concat(t,substring(s,7,7)))); }
时间:2020-10-23 22:45:56
本类最有帮助
Copyright © 2008-2013 www.wangwenda.com All rights reserved.冀ICP备12000710号-1
投诉邮箱: