问答详情
源自:2-5 格式化输出语句

为什么一定要输入%c呀,这样不可以吗?

这是为啥呀

http://img2.mukewang.com/602dd29e000149c719201080.jpg

提问者:慕丝5237396 2021-02-18 10:36

个回答

  • weixin_慕莱坞3184754
    2021-04-10 19:38:39

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E8%B4%B5%E9%98%B3%E6%AD%A3%E8%A7%84%E8%A3%85%E4%BF%AE%E5%85%AC%E5%8F%B818217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E8%B4%B5%E9%98%B3%E5%AE%A4%E5%86%85%E8%A3%85%E9%A5%B0%E8%A3%85%E4%BF%AE%E5%85%AC%E5%8F%B8%E8%B4%B5%E9%98%B318217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E8%B4%B5%E9%98%B3%E6%9C%89%E5%93%AA%E4%BA%9B%E8%A3%85%E4%BF%AE%E5%85%AC%E5%8F%B818217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E2016%E6%B0%B4%E7%94%B5%E5%AE%89%E8%A3%85%E5%B7%A5%E7%A8%8B%E5%AE%9A%E9%A2%9D18217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E7%9C%81%E6%9C%80%E5%A5%BD%E7%9A%84%E6%B0%B4%E7%94%B5%E5%AE%89%E8%A3%85%E5%AD%A6%E6%A0%A118217700100

    https://www.douguo.com/caipu/%E5%9C%A8%E8%B4%B5%E5%B7%9E%E8%B4%B5%E9%98%B3%E6%9C%89%E6%B2%A1%E6%9C%89%E5%81%9A%E6%B0%B4%E7%94%B5%E5%AE%89%E8%A3%85%E7%9A%8418217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E6%B0%B4%E7%94%B5%E5%AE%89%E8%A3%85%E5%A4%9A%E5%B0%91%E9%92%B118217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E7%9C%81%E6%B0%B4%E7%94%B5%E5%AE%89%E8%A3%85%E4%BB%B7%E6%A0%BC18217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E6%B0%B4%E7%94%B5%E5%AE%89%E8%A3%85%E5%AE%9A%E9%A2%9D%E4%B8%8B%E6%B5%AE10%E4%B8%8718217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E6%B0%B4%E7%94%B5%E5%AE%89%E8%A3%85%E5%AE%9A%E9%A2%9D%E4%B8%8B%E6%B5%AE18217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E6%B0%B4%E7%94%B5%E5%AE%89%E8%A3%85%E5%AE%9A%E9%A2%9D%E4%B8%8B%E6%B5%AE10%E4%B8%87%E6%96%B918217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E6%B0%B4%E7%94%B5%E5%AE%89%E8%A3%85%E5%85%AC%E5%8F%B8%E6%8E%92%E5%90%8D18217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E7%9C%81%E6%B0%B4%E7%94%B5%E5%AE%89%E8%A3%85%E5%B7%A5%E7%A8%8B%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B818217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E6%B0%B4%E7%94%B5%E5%AE%89%E8%A3%85%E6%96%BD%E5%B7%A5%E9%98%9F18217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E6%B0%B4%E7%94%B5%E5%AE%89%E8%A3%85%E8%B4%B9%E7%94%A818217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E5%BB%BA%E7%AD%91%E6%B0%B4%E7%94%B5%E5%AE%89%E8%A3%85%E5%A4%9A%E5%B0%91%E9%92%B1%E4%B8%80%E5%B9%B3%E6%96%B918217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E6%B0%B4%E7%94%B5%E5%AE%89%E8%A3%85%E5%A4%9A%E5%B0%91%E9%92%B1%E4%B8%80%E7%B1%B318217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E9%87%91%E6%B2%99%E6%B0%B4%E7%94%B5%E5%AE%89%E8%A3%85%E5%A4%9A%E5%B0%91%E9%92%B1%E4%B8%80%E5%B9%B3%E6%96%B918217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E5%AE%89%E9%A1%BA%E6%89%BE%E6%B0%B4%E7%94%B5%E5%AE%89%E8%A3%8518217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E5%85%AD%E7%9B%98%E6%B0%B4%E6%B0%B4%E7%94%B5%E5%AE%89%E8%A3%85%E6%9C%89%E7%94%B5%E8%AF%9D%E5%8F%B7%E7%A0%81%E5%90%9718217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E5%85%AD%E7%9B%98%E6%B0%B4%E5%B8%82%E6%B0%B4%E7%94%B5%E5%AE%89%E8%A3%8518217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E5%B1%8B%E5%86%85%E6%B0%B4%E7%94%B5%E5%AE%89%E8%A3%85%E6%B1%82%E8%81%8C18217700100


  • weixin_慕莱坞3184754
    2021-04-10 19:35:31

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E8%B4%B5%E9%98%B3%E8%A3%85%E4%BF%AE%E8%AE%BE%E8%AE%A1%E5%85%AC%E5%8F%B8%E5%93%AA%E5%AE%B6%E5%A5%BD18217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E8%B4%B5%E9%98%B3%E8%A3%85%E4%BF%AE%E5%AD%A6%E5%BE%92%E6%8B%9B%E8%81%9818217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E8%B4%B5%E9%98%B3%E6%9E%81%E5%AE%B6%E8%A3%85%E4%BF%AE18217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E8%B4%B5%E9%98%B3%E8%A3%85%E9%A5%B0%E8%A3%85%E4%BF%AE%E5%B7%A5%E7%A8%8B%E9%80%A0%E4%BB%B7%E9%A2%84%E7%AE%97%E8%A1%A818217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E8%B4%B5%E9%98%B3%E8%A3%85%E4%BF%AE%E9%A2%84%E7%AE%97%E8%A1%A818217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E8%B4%B5%E9%98%B3%E5%87%BA%E5%90%8D%E7%9A%84%E8%A3%85%E4%BF%AE%E5%85%AC%E5%8F%B818217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E8%B4%B5%E9%98%B3%E8%A3%85%E4%BF%AE%E5%AE%B6%E8%A3%85%E5%85%AC%E5%8F%B8%E9%82%A3%E4%B8%AA%E5%A5%BD18217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E8%B4%B5%E9%98%B3%E5%8E%A8%E6%88%BF%E6%94%B9%E9%80%A0%E8%A3%85%E4%BF%AE%E5%85%AC%E5%8F%B818217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E8%B4%B5%E9%98%B3%E5%AE%A4%E5%86%85%E8%A3%85%E4%BF%AE%E6%8A%A5%E4%BB%B7%E6%98%8E%E7%BB%86%E8%A1%A8%E5%AE%B6%E8%A3%8518217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E8%B4%B5%E9%98%B3%E8%A3%85%E4%BF%AE%E5%AD%A6%E5%BE%92%E6%8B%9B%E8%81%98%E4%BF%A1%E6%81%AF18217700100

    https://www.douguo.com/caipu/%E8%B4%B5%E5%B7%9E%E8%B4%B5%E9%98%B3%E5%AE%A4%E5%86%85%E8%A3%85%E9%A5%B0%E8%A3%85%E4%BF%AE%E5%85%AC%E5%8F%B818217700100


  • RightBOY
    2021-03-17 15:25:45

    注意哦,一个标识符只能配合一个傻小子,你看你后面那个输出环节,人家逗号后面两个标识符,你就给人家一个%f,你单身还让人家都单身嘛,配个%c得跟人家一起输出才行呀


  • 精慕门5089460
    2021-02-22 23:34:03

    单位是m

  • weixin_慕仙6417786
    2021-02-19 20:11:18

    我看到你第七行没有单位   

    至于为什么要%我不知道(我只是提醒一下)

  • 慕仰5580113
    2021-02-19 15:26:28

    身高处的那个m没有打上去,在%f后面加上个%c就可以了(另你后面的那个%s没有也是可以的)