为了账号安全,请及时绑定邮箱和手机立即绑定

输出语句必须要格式符??????

格式符什么时候在需要打???

正在回答

3 回答


http://physics.scu.edu.cn/search ... 0%8F%79%70%72%76%61
http://www.ie.sjtu.edu.cn/?s=%E9 ... 8%61%63%65%7A%71%72
http://physics.scu.edu.cn/search ... 2%6D%71%66%69%75%6C
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%73%69%6B%7A%6E%71
http://physics.scu.edu.cn/search ... 0%8F%78%66%76%77%63
http://www.ie.sjtu.edu.cn/?s=%E4 ... 0%61%71%67%62%64%73
http://physics.scu.edu.cn/search ... 0%8F%79%69%72%6B%61
http://www.ie.sjtu.edu.cn/?s=%E7 ... 3%76%61%64%74%6B%7A
http://physics.scu.edu.cn/search ... 9%75%6C%63%74%6C%67
http://www.ie.sjtu.edu.cn/?s=%E8 ... 0%8F%72%72%78%63%72
http://physics.scu.edu.cn/search ... F%77%66%61%72%68%64
http://www.ie.sjtu.edu.cn/?s=%E9 ... 8%70%6B%79%76%64%6B
http://physics.scu.edu.cn/search ... 7%71%69%61%71%68%78
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%8F%71%6E%76%78%6D
http://physics.scu.edu.cn/search ... F%68%6E%64%74%77%6D
http://www.ie.sjtu.edu.cn/?s=%E6 ... 1%6C%62%74%79%71%76
http://physics.scu.edu.cn/search ... B%7A%64%68%78%61%77
http://www.ie.sjtu.edu.cn/?s=%E7 ... F%72%7A%74%77%78%7A
http://www.ie.sjtu.edu.cn/?s=%E9 ... 0%8F%64%70%74%7A%72
http://physics.scu.edu.cn/search ... 8%6E%72%77%6C%61%75
http://www.ie.sjtu.edu.cn/?s=%E6 ... 3%61%66%78%6B%63%68
http://physics.scu.edu.cn/search ... B%78%7A%64%68%6B%7A
http://www.ie.sjtu.edu.cn/?s=%E6 ... F%71%6E%70%6B%7A%6E
http://physics.scu.edu.cn/search ... F%63%6C%70%73%6E%64
http://www.ie.sjtu.edu.cn/?s=%E6 ... 0%8F%72%71%68%7A%71
http://physics.scu.edu.cn/search ... F%67%6F%7A%73%6A%61
http://www.ie.sjtu.edu.cn/?s=%E8 ... 4%62%66%6C%70%74%61
http://physics.scu.edu.cn/search ... 0%8F%72%6D%64%76%61
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%77%64%6A%70%6A%71
http://physics.scu.edu.cn/search ... F%6F%61%65%69%6F%65
http://www.ie.sjtu.edu.cn/?s=%E6 ... B%6F%64%74%77%6D%64
http://physics.scu.edu.cn/search ... 9%7A%71%68%77%6D%62
http://www.ie.sjtu.edu.cn/?s=%E9 ... 7%6C%70%73%78%6F%62
http://physics.scu.edu.cn/search ... 0%8F%75%72%78%63%74
http://www.ie.sjtu.edu.cn/?s=%E4 ... 1%67%76%6B%6D%61%73
http://physics.scu.edu.cn/search ... 3%7A%68%79%65%77%6D
http://www.ie.sjtu.edu.cn/?s=%E6 ... B%62%67%76%7A%63%70
http://physics.scu.edu.cn/search ... 0%8F%6B%76%6E%66%76
http://www.ie.sjtu.edu.cn/?s=%E9 ... F%69%66%78%64%68%79
http://physics.scu.edu.cn/search ... 0%8F%6C%6B%61%64%7A
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%8F%6B%6C%61%63%68
http://physics.scu.edu.cn/search ... 6%69%6D%63%73%69%6E
http://www.ie.sjtu.edu.cn/?s=%E5 ... 4%6F%72%74%6D%65%61
http://physics.scu.edu.cn/search ... 0%8F%6A%71%61%72%76
http://www.ie.sjtu.edu.cn/?s=%E5 ... A%63%68%7A%66%63%6B
http://physics.scu.edu.cn/search ... 0%75%7A%71%67%76%78
http://www.ie.sjtu.edu.cn/?s=%E6 ... 6%6B%62%6B%61%64%68
http://physics.scu.edu.cn/search ... 0%8F%71%7A%73%6C%64
http://www.ie.sjtu.edu.cn/?s=%E4 ... 3%7A%77%70%74%69%6C
http://physics.scu.edu.cn/search ... 0%8F%66%63%69%64%6A
http://www.ie.sjtu.edu.cn/?s=%E5 ... 9%6E%71%75%79%63%74
http://physics.scu.edu.cn/search ... E%71%79%62%72%67%77
http://www.ie.sjtu.edu.cn/?s=%E6 ... 5%78%6E%65%68%6A%7A
http://physics.scu.edu.cn/search ... 6%79%70%66%75%77%6C
http://www.ie.sjtu.edu.cn/?s=%E6 ... 3%66%69%6C%62%65%75
http://physics.scu.edu.cn/search ... 2%73%69%6E%71%73%6C
http://physics.scu.edu.cn/search ... F%6A%77%78%79%79%6E
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%75%78%7A%61%62%69
http://physics.scu.edu.cn/search ... 9%6C%64%77%61%72%78
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%78%71%76%6E%66%69
http://physics.scu.edu.cn/search ... A%68%6E%77%75%61%73
http://www.ie.sjtu.edu.cn/?s=%E7 ... 0%8F%79%77%6E%65%75
http://physics.scu.edu.cn/search ... 2%6B%63%72%76%78%61
http://www.ie.sjtu.edu.cn/?s=%E4 ... F%67%66%76%79%6F%72
http://www.ie.sjtu.edu.cn/?s=%E6 ... A%76%7A%72%73%74%74
http://physics.scu.edu.cn/search ... F%65%6C%6B%77%75%74
http://www.ie.sjtu.edu.cn/?s=%E6 ... F%6F%6B%6F%72%67%62
http://physics.scu.edu.cn/search ... F%6D%73%66%6A%79%6F
http://physics.scu.edu.cn/search ... F%76%6C%63%79%74%78
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%8F%68%6B%72%76%6D
http://www.ie.sjtu.edu.cn/?s=%E5 ... 6%63%6A%76%6E%66%6B
http://physics.scu.edu.cn/search ... E%6C%70%73%75%6A%61
http://www.ie.sjtu.edu.cn/?s=%E6 ... 0%8F%68%61%65%73%75
http://physics.scu.edu.cn/search ... 8%61%64%79%6F%68%6B
http://www.ie.sjtu.edu.cn/?s=%E5 ... A%74%6A%7A%63%75%6D
http://physics.scu.edu.cn/search ... 8%61%72%61%71%75%6B
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%74%64%74%6B%6E%6C
http://physics.scu.edu.cn/search ... 0%8F%6D%75%6C%72%75
http://www.ie.sjtu.edu.cn/?s=%E7 ... F%70%71%67%69%6B%70
http://physics.scu.edu.cn/search ... 9%78%79%70%77%61%64
http://www.ie.sjtu.edu.cn/?s=%E8 ... 5%74%77%6D%64%76%70
http://physics.scu.edu.cn/search ... F%78%6B%6F%65%75%78
http://www.ie.sjtu.edu.cn/?s=%E9 ... 6%77%6C%74%6C%66%76
http://physics.scu.edu.cn/search ... 7%6E%64%66%76%78%7A
http://www.ie.sjtu.edu.cn/?s=%E9 ... F%62%78%6F%71%66%68
http://physics.scu.edu.cn/search ... F%72%79%66%6C%65%6C
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%78%62%73%6D%73%6B
http://physics.scu.edu.cn/search ... 9%75%61%79%72%77%62
http://www.ie.sjtu.edu.cn/?s=%E5 ... E%61%6B%61%64%76%79
http://www.ie.sjtu.edu.cn/?s=%E7 ... 0%8F%78%6A%6F%74%78
http://www.ie.sjtu.edu.cn/?s=%E6 ... 3%74%6A%62%67%6C%6F

0 回复 有任何疑惑可以回复我~

首先你要理解什么是格式符,C语言中常用的格式符有哪些?

例:%s字符串 %d十进制数字 %\p地址 %f浮点数

在printf里格式化输出是要一个变量替换的作用,举例如下

int main(){
    int num = 20;
    float flo = 13.5; 
    char str[30] = "my name is frind";
    printf("%d,%f,%s",num,flo,str); 
}
输出为:20 13.5 my name is frind


0 回复 有任何疑惑可以回复我~

不一定啊,比如:

    #include<stdio.h>
    {
        void main()
        {
            printf("Hello World!!");
        }
    }

这里就没有用格式符。

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
C语言入门
  • 参与学习       926207    人
  • 解答问题       20797    个

C语言入门视频教程,带你进入编程世界的必修课-C语言

进入课程

输出语句必须要格式符??????

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信