2019年5月7日

C:输入数字计数(数组方法)

摘要: 两类题型 1.例如 1 2 3 2 1 -1 然后计数 #include <stdio.h>#include <stdlib.h>int main(){ //解决计数问题,当输入-1的时候代表停止输入 /* 思路 通过数组cout[]作为计数器,每次键入的值如果为0-9,则该cout[i]++ co 阅读全文

posted @ 2019-05-07 21:13 zhaoy_shine 阅读(1238) 评论(0) 推荐(0) 编辑

导航