C
文章平均质量分 73
路歌_
这个作者很懒,什么都没留下…
展开
-
C语言格式化输入/输出
int printf:-- formatted output(格式化输出) SYNOPSIS(梗概 ) printf format [arguments ...] DESCRIPTION The printf utility formats and prints its arguments, after the first,原创 2016-01-18 22:10:19 · 561 阅读 · 0 评论 -
switch里面不能做什么?
C++课设的时候,室友喊我帮他看一下这个错误,具体的代码不记得了,形式上是这样的(其他的某些break就没写了):switch(a) { case 1: case 2: int a;scanf("%d",&a);cout<<a;break; ... case n: } 过不了编译,为什么呢?刚开始我想是不是没打{ }符号?但是我又想起来C/C++里面唯一不强制用{ }做代码块的就是swi原创 2016-01-18 23:20:09 · 922 阅读 · 0 评论