• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
猫和老鼠821
博客园 首页 新随笔 联系 订阅 订阅 管理

2018年2月9日

5*1 与指定数字相同的数的个数
摘要: 1:与指定数字相同的数的个数 描述 输出一个整数序列中与指定数字相同的数的个数。 输入 输入包含三行: 第一行为N,表示整数序列的长度(N include using namespace std; int main() { int n,m,times=0; cin n; int a[n+10]; f 阅读全文
posted @ 2018-02-09 11:55 猫和老鼠821 阅读(240) 评论(0) 推荐(0)
 
5周3例 二维矩阵 矩阵乘法
摘要: 二维矩阵 矩阵乘法 描述 矩阵乘法 用三重循环 mycode include include using namespace std; define rows 8 define clos 8 int a[rows][clos]; int b[rows][clos]; int c[rows][clos 阅读全文
posted @ 2018-02-09 11:36 猫和老鼠821 阅读(279) 评论(0) 推荐(0)
 
5周例2 数组 筛法求素数
摘要: 数组 筛法求素数 描述 筛法 mycode include include include using namespace std; define NUM 100 int isprime [NUM]; int main() { for(int i=0;i include include using 阅读全文
posted @ 2018-02-09 10:33 猫和老鼠821 阅读(174) 评论(0) 推荐(0)
 
5周例1 数组-倒序输出
摘要: 数组 倒序输出 描述 一维数组的应用 mycode include include include using namespace std; int main() { int a[10]; for(int i=0;i a[i]; } for(int j=9;j =0;j ) { cout inclu 阅读全文
posted @ 2018-02-09 09:51 猫和老鼠821 阅读(123) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3