补充

#include<stdio.h>
#include<conio.h>
int main(void)
{
    void funstr(char a[],int c);
    char str[20]="hello world";
    str[0]='H';
    str[6]='W';
    funstr(str,sizeof(str));
    return 0;
}
void funstr(char a[],int c)
{
    int b;
    printf("%s\n",a);
    for(b=0;b<c;b++)
    {
        printf("%c",a[b]);
    }
}

总结:课堂时间不够,本人比较愚笨 

posted @ 2017-03-31 13:08  熊浩清  阅读(103)  评论(0编辑  收藏  举报