首页 > 其他 > 详细

课上作业补充

时间:2017-04-04 14:27:51      阅读:114      评论:0      收藏:0      [点我收藏+]
#include<stdio.h>
main()
{char funstr(char* str);
    char  str [11]="helloworld";
printf("%s\n",str);
str[0]=H;
str[6]=w;
puts(str);
getchar();
funstr(str);}
char funstr(char* str)
{int i=0;
printf("%s\n",str[11]);
while (str[i]!=0)
{printf("%c",str[i]);}
}

Hello World!

Hello World!

--------------------------------

Process exited after 0.136 seconds with return value 33

请按任意键继续. . .
总结:课堂上不理解,只是定义了一下字符窜什么的,不会转换字符“h”与"H,下课向同学请教,现在理解了。

 

课上作业补充

原文:http://www.cnblogs.com/2016024263wky/p/6653691.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!