摘要:
阅读全文
posted @ 2019-07-06 16:33
kkkshiki
阅读(147)
评论(0)
推荐(0)
|
摘要:
提交代码: 1 #include <stdio.h> 2 3 int main(){ 4 int row,col; //定义行数和列数 5 char c; 6 scanf("%d %c",&col,&c);//输入列数 欲使用的字符 7 //计算行数 8 if(col%2==1) row=col/2 阅读全文
posted @ 2019-07-06 14:45
kkkshiki
阅读(465)
评论(0)
推荐(0)
摘要:
提交代码: 注: 多组输入 scanf的返回值是输入值的个数。没有输入值就返回-1。 -1按位取反结果是0 while(~scanf("%d", &n))就是当没有输入的时候退出循环 1 #include <stdio.h> 2 3 4 #define maxn 210 5 6 int a[maxn 阅读全文
posted @ 2019-07-06 14:43
kkkshiki
阅读(283)
评论(0)
推荐(0)
|