会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
All things are difficult before they are easy! Believe myself!
Nothing is imposssible for my willing heart. Anyone can't ride my back unless it is bent.
博客园
首页
新随笔
联系
管理
订阅
2018年12月30日
2-2-3:序列(字符串)乘法(p32)
摘要: 以正确的宽度在剧中的“盒子”内打印一个句子 分析: 定义屏幕宽度为80,输入的句子长度为26,盒子宽度=句子长度+6=26+6=32; 左边距=右边距,左边距+右边距+盒子宽度=屏幕宽度; 左边距=(屏幕宽度-盒子宽度)/2=(80-32)/2=24; 格式输出: 盒子四个角为+号,左面是空格,右面
阅读全文
posted @ 2018-12-30 22:46 scholar-for-ever
阅读(257)
评论(0)
推荐(0)
公告