电话:0731-83595998
导航
首页 > 在线问答 > 计算机 > 计算机题库1
题目内容

请编一个函数fun(oh lr*str),该函数的功能是把字符串中的内容逆置。 例如,字符串中原有的字符串为asdf9,则调用该函数后,串中的内容为9fdsa。 请勿改动main函数和其他函数中的任何内容,仅在函数proc的花括号中填人所编写的若干语句。 试题程序: include include include define N 100 void fun(char * str) { } void main { char a[N]; FILE*out: printf("Enter a

提问人:陈俭龙发布时间:2020-07-03
请编一个函数fun(oh lr*str),该函数的功能是把字符串中的内容逆置。 例如,字符串中原有的字符串为asdf9,则调用该函数后,串中的内容为9fdsa。 请勿改动main函数和其他函数中的任何内容,仅在函数proc的花括号中填人所编写的若干语句。 试题程序: include include include define N 100 void fun(char * str) { } void main { char a[N]; FILE*out: printf("Enter a string:"); gets(a); printf("The origir al string is:"); puts(a); fun(a): printf("The string after modified:"); puts(a); strcpy(a,"Welcome!"); fun(a); ut=fopen("outfile.dat","w"); fprintf(out,"%s".a); fclose(out); }
题目答案

一对一服务

咨询老师
网友评论(共0条评论)

请自觉遵守互联网相关政策法规,评论内容只代表网友观点!

最新评论

点击加载更多评论>>

免费咨询,如何快速提升学历!

立即报名

已经有28179人提升了学历

题库-找答案

已有大量题库

马上做题
相关试题

继续查找其他问题的答案?

长理培训客户端 资讯,试题,视频一手掌握

去 App Store 免费下载 iOS 客户端