码迷,mamicode.com
首页 > 其他好文 > 详细

课上作业补充

时间:2017-04-04 14:27:51      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:put   printf   bsp   字符   roc   while   print   ted   str   

#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,下课向同学请教,现在理解了。

 

课上作业补充

标签:put   printf   bsp   字符   roc   while   print   ted   str   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!