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

牛老师 你好

时间:2017-03-31 18:11:42      阅读:114      评论:0      收藏:0      [点我收藏+]

标签:div   错误   world   return   print   int   printf   class   str   

#include<stdio.h>
int main()
{    void funstr(char str[12]);
     char str[12]={"hello world"};
     char *a=str;
     str[0]=H;
     funstr(a);
     return 0;
} 
void funstr(char str[12])
{
    int t=0;
    printf("%s\n",str);
    while(str[t]!=\0)
    {
        printf("%c",str[t]);
        t++;
    }
}

老师  我上课时候 单词打错了 所以有那么一点小瑕疵  一直没对 错误提示没看懂

Hello world
Hello world请按任意键继续. . .

 

牛老师 你好

标签:div   错误   world   return   print   int   printf   class   str   

原文地址:http://www.cnblogs.com/dingyubin/p/6652576.html

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