C error

*) Scanf () function only inside the form scanf("%s %d",symbel,&count);, can be not scanf("提示文本%s %d",symbel,&count);possible without text

*)

        char symbel;#这样是不能接受输入的,
    printf("please enter:");
    scanf("%c",symbel);
        char symbel[10];//这样可以
        scanf("%c",symbel);这样只会接受一个字符,要改为”%s"
        printf("%s",symbel);但是要改为%s

*) After i ++ will increase the results of a i, i = i + 1 corresponds to the values ​​will change

Guess you like

Origin www.cnblogs.com/Gaoqiking/p/11782676.html