Tommy's Blog Tommy's Blog
首页
  • IT专题
  • 考研学习
  • 英语学习
  • 考公学习
  • 斗资博弈
  • 随笔
Tags
正经人
时光机
  • 关于
  • 建站分享
  • Hexo教程
GitHub (opens new window)

Tommy

实事求是
首页
  • IT专题
  • 考研学习
  • 英语学习
  • 考公学习
  • 斗资博弈
  • 随笔
Tags
正经人
时光机
  • 关于
  • 建站分享
  • Hexo教程
GitHub (opens new window)
  • 计算机相关分享 目录
  • Vuepress静态网站搭建分享

  • 本BLOG网站维护关键信息

  • C++刷题

    • C++ 学习分享专栏介绍
    • 头文件资料库
    • C++题目分享
    • 函数类题目

    • 普通题目

      • P1000
        • P1000 输出马里奥
        • 数组的运用及for循环批量填充数组
        • 运用数学运算公式的方法 (幂,次方,开跟)
      • P1428
      • P5736
      • P5707
    • 分支类题目

  • windows坑爹问题杂谈

  • Hexo静态博客相关

目录

P1000

# P1000 输出马里奥

#include<iostream>
using namespace std;
int main() {
	cout << "                ********"<<endl;
	cout << "               ************" << endl;
	**cout** << "               ####....#."<< endl;
	cout << "             #..###.....##...." << endl;
	cout << "             ###.......######              ###            ###"<< endl;
	cout << "                ...........               #...#          #...#"<< endl;
	cout << "               ##*#######                 #.#.#          #.#.#"<< endl;
	cout << "            ####*******######             #.#.#          #.#.#"<< endl;
	cout << "           ...#***.****.*###....          #...#          #...#"<< endl;
	cout << "           ....**********##.....           ###            ###"<< endl;
	cout << "           ....****    *****...."<< endl;
	cout << "             ####        ####"<< endl;
	cout << "           ######        ######"<< endl;
	cout << "##############################################################"<< endl;
	cout << "#...#......#.##...#......#.##...#......#.##------------------#"<< endl;
	cout << "###########################################------------------#"<< endl;
	cout << "#..#....#....##..#....#....##..#....#....#####################"<< endl;
	cout << "##########################################    #----------#"<< endl;
	cout << "#.....#......##.....#......##.....#......#    #----------#"<< endl;
	cout << "##########################################    #----------#"<< endl;
	cout << "#.#..#....#..##.#..#....#..##.#..#....#..#    #----------#"<< endl;
	cout << "##########################################    ############"<<endl;
	return 0;
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

# 数组的运用及for循环批量填充数组

详情请见P1046题解

# 运用数学运算公式的方法 (幂,次方,开跟)

//首先是要用到math.h的库
#include<math.h>
using namespace std;
int main()
{
    pow(数字,数字的幂);//这个常用于计算幂,以及开高次根号(注意是高次根号)
   	sqrt(数字);//开平方根
}
1
2
3
4
5
6
7
8
1
2
3
4
5
6
7
8
在线编辑 (opens new window)
#cpp 刷题笔记#分支类题目#C语言
最近编辑时间: 2024/01/25 20:50:42
P5735
P1428

← P5735 P1428→

最近更新
01
本站维护方法(防止遗忘)
01-27
02
Speaking Corpus
04-28
03
Speaking Reference
04-24
更多文章>
Theme by Vdoing | Copyright © 2021-2025 | 备案信息:10086号
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式