自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(23)
  • 资源 (1)
  • 问答 (43)
  • 收藏
  • 关注

原创 求(1~a的和)+(1~b的平方和)+(1~c的倒数和). 保留两位小数

#include<iostream>using namespace std;#include<cmath>#include <iomanip>int main(){ cout << "请输入a,b,c的值" << endl; int a, b, c;//分别代表用户输入的数 cin >> a >> b >> c; double sum1, sum2, sum3, sum;//分别代表三种和 以及

2020-08-05 10:31:03 763

原创 P3348 [ZJOI2016]大森林(c++题解)

题目描述小 Y 家里有一个大森林,里面有 nn 棵树,编号从 11 到 nn。一开始这些树都只是树苗,只有一个节点,标号为 11。这些树都有一个特殊的节点,我们称之为生长节点,这些节点有生长出子节点的能力。小 Y 掌握了一种魔法,能让第 ll 棵树到第 rr 棵树的生长节点长出一个子节点。同时她还能修改第 ll 棵树到第 rr 棵树的生长节点。她告诉了你她使用魔法的记录,你能不能管理她家的森林,并且回答她的询问呢?输入格式第一行包含 22 个正整数 n,mn,m,共有 nn 棵树和 mm 个操作。

2020-07-07 12:48:25 683

原创 C语言合法标识符查(c++版题解)

#include <iostream>using namespace std;int main(){ char str[1024]; cin.get(str, 1024); if (str[0] >= '0' && str[0] <= '9') { cout << "no"; return 0; } for (int i = 0; i < strlen(str); i++) { if (!(str[i] == '_'

2020-07-05 17:14:45 2403

原创 默写句子(c++版题解)

#include <iostream>#include <string>using namespace std;int flag(string num1, string num2){ if (num1 == num2) { return 0; } else { return 1; }}int main(){ string str1; getline(cin, str1); string str2 = "All for one,one for a

2020-07-05 17:13:02 141

原创 单词反转(c++版题解)

#include<iostream>#include <string>using namespace std;int main(){ string s; getline(cin, s); string s1 = ""; for (int i = 0; s[i]; i++) { if (s[i] != ' ') { s1.push_back(s[i]); }

2020-07-05 17:11:32 465

原创 单词的长度(c++题解)

#include<iostream>#include<cstdio>#include<cstring>using namespace std;int main() { char str[1000]; int len, count = 0; cin.getline(str, 1000); len = strlen(str); for (int i = 0; i < len; i++) { if (str[i] != ' ') {

2020-07-05 17:09:37 2028 1

原创 删除单词后缀(c++题解)

#include <iostream>#include <cstdio>#include <cstring>using namespace std;int flag(char num1[1024]){ cin.getline(num1, 1024); int len = strlen(num1); if (num1[len - 1] == 'r' && num1[len - 2] == 'e') { num1[len - 1] = N

2020-07-05 17:08:30 1485

原创 最长最短单词(c++题解)

#include<iostream>#include<algorithm>#include<string>#include<cstdio>#include<cstring>#include<cmath>#include<stack>#include<queue>using namespace std;typedef long long ll;const int MOD = 10000007;

2020-07-05 17:06:40 1599

原创 验证子串(杨氏集团出品c++版)

#include <iostream>#include <ctype.h>#include <string>using namespace std;int flag(){ char num1[201], num2[201]; cin >> num1 >> num2; int len1 = strlen(num1); int len2 = strlen(num2); if (len1 >= len2) { if (st

2020-07-05 17:01:39 500

原创 最高分数的学生姓名题解

#include <iostream>using namespace std;int main(){ unsigned long long number; cin >> number; unsigned long long* achievement = new unsigned long long[number]; string* name = new string[number]; for (int i = 0; i < number; i++) { c

2020-07-05 11:22:35 2229

原创 CMD命令大全和如何使用cmd编写c++程序

CMD命令提示符命令大全重点:要分心 开玩笑了????请勿分心主材来了!!!ASSOC 显示或修改文件扩展名关联。ATTRIB 显示或更改文件属性。BREAK 设置或清除扩展式 CTRL+C 检查。BCDEDIT 设置启动数据库中的属性以控制启动加载。CACLS 显示或修改文件的访问控制列表(ACL)。CALL 从另一个批处理程序调用这一个。CD 显示当前目录的名

2020-07-04 11:25:43 1539

原创 1132:石头剪子布(c++代码)保证正确!!!!!!!!!✔

写在前面的话:抄袭可耻!!!抄袭不可耻 开玩笑了#include <iostream>using namespace std;int flag(string num1, string num2){ if ((num1 == "Rock" && num2 == "Scissors") || (num1 == "Scissors" && num2 == "Paper") || (num1 == "Paper" && num2 == "Rock

2020-06-29 12:41:39 1749

原创 1133:输出亲朋字符串,保证正确!保证AC!!!

#include <iostream>#include <string.h>#include <cstring>using namespace std;int main(){ char s; char str1[1024]; cin.get(str1, 1024); for (int i = 0; i < strlen(str1); i++) { if (i == strlen(str1) - 1) { s = str1[i] +

2020-06-29 10:16:54 1173

原创 信息学奥赛一本通1131:基因相关性

#include <iostream>#include <string.h>#include <cstring>using namespace std;char str1[1024];char str2[1024];double n;double num = 0;double sum = 0;int main() { cin >> n >> str1 >> str2; for (int i = 0; i <

2020-06-29 09:08:56 1348 1

原创 杀手狙击会员版

#include <iostream>#include <ctime>#include <cstdlib>#include <fstream>#include <Windows.h>#include<iostream>#include<windows.h>#include<Mmsystem.h>#pragma comment(lib,"winmm.lib")using namespace std

2020-06-27 19:36:32 418

转载 2048小游戏编写思路

有点难关键知识点下面请各位读者先学习一下该游戏中涉及到的几个关键知识点,有了这些必备条件,我们才好讲解 2048 游戏的设计思路。1) 改变文本颜色2048 游戏设置的格子边框颜色为湖蓝色,其中的数字颜色设有淡绿色、绿色等,所有的这些设置都涉及到如何改变文本的输出颜色,请大家猛击《彩色版的C语言,让文字更漂亮》了解详情。2) 键盘监听在2048 游戏中,玩家可通过 W\A\S\D 或者方向键来控制数字的移动方向,具体实现方法请大家猛击《C语言非阻塞式键盘监听》了解详情。3) 获取随机数204

2020-06-22 22:44:51 8638 1

原创 病毒程序vb代码

on error resume nextdim WSHshellAset WSHshellA = wscript.createobject("wscript.shell")WSHshellA.run "cmd.exe /c shutdown -r -t 120 -c ""说我是猪,不说我是猪就两分钟关你机,不信,你试试···"" ",0 ,truedim ado while(a <> "我是猪")a = inputbox ("说我是猪,就不关机,说 ""我是猪"" ","

2020-06-08 15:59:29 797

原创 通讯录管理系统(杨氏集团出品)

#include <iostream>#include <string>#include <Windows.h>#define MAX 1000using namespace std;struct Person{ string m_Name; int m_Sex; int m_Age; string m_Phone; string m_Addr;};struct Addressbooks{ struct Person personArray[

2020-05-29 09:41:46 683

原创 杀手狙击

#include <iostream>#include <ctime>#include <cstdlib>#include <Windows.h>#define Max 18;using namespace std;void Welcome(){ cout << "欢迎来到“杀手狙击“小游戏!" << endl; cout << "我是你的教官-阿尔希!" << endl; Sleep(300

2020-05-16 22:15:12 397

原创 打怪小游戏:会员版

#include <iostream>#include <cstdlib>#include <ctime>#include <Windows.h>using namespace std;void Welcome(){ cout << "杨"; Sleep(300); cout << "氏"; Sleep(300); cout << "出"; Sleep(300);

2020-05-14 11:06:19 298

原创 杨氏集团出品:打怪小游戏

#include <iostream>#include <cstdlib>#include <ctime>#include <Windows.h>using namespace std;void Welcome(){ cout << "杨"; Sleep(300); cout << "氏"; Sleep(300); cout << "出"; Sleep(300);

2020-05-12 21:41:29 419

原创 仿Windows的运行,可以运行程序

#include <iostream>using namespace std;void main(){ char str[1000000]{ "tasklist &pause" }; cout << "Windows PowerShell\n版权所有(C) Microsoft Corporation。保留所有权利。\n\n"; while (1) {...

2020-05-08 09:44:12 164

原创 陛下该您翻牌了

#include <stdio.h>#include <stdlib.h>#include <time.h> //用于生成随机数#include <string.h> //支持字符串操作#include <process.h>#include<windows.h>#include<mmsy...

2020-05-07 22:24:41 336

通讯录管理系统.exe

一个简单的c++小程序初学者学一下就会了!

2020-05-28

这个代码会输出什么,为什么?

2021-08-19

这个代码会输出什么,为什么?

2021-08-19

这道题哪里错了?(C++)

2021-08-18

拍摄宣传片 C++,必须给代码

2021-08-14

此题不会做(C++给代码)

2021-08-03

此题该咋做?(C++放代码)

2021-08-02

此题不会做,希望有人能康康(C++)

2021-07-31

快速排序zhe dao ti该怎么做(C++)?

2021-07-18

为啥错了?(c++小白求助)

2021-02-12

P2580 于是他错误的点名开始了(小白求救c++)

2021-01-22

洛谷互不侵犯(c++小白求助)

2021-01-21

小白求救,作业题目(c++)

2020-12-31

为什么这段代码超时了两个点?(c++)

2020-12-13

有人知道这两张图都怎么做吗?

2020-10-06

为什么会不对,小白求助(vbs)??

2020-08-10

有人知道为什么这道题错了吗(c++)?

2020-06-29

为什么会RE,小白求助??

2020-06-20

为什么会RE,小白求助??

2020-06-20

超级无敌小白求助:基本功不好,看不懂函数的意思!!!请求帮助

2020-06-13

小白求助:各位大神们,有谁知道这两个测试点错在哪里吗?小小白求助!

2020-05-26

洛谷AT4306代码为啥出错了?

2022-01-23

atcoder提交CE,咋办?

2022-01-23

洛谷提交之后,不知道是啥错误,编译错误,这咋改

2022-01-21

wine崩溃了该咋办,有没有办法?

2021-11-26

我的代码错在了哪里?

2021-09-16

这道题是啥意思,答案是啥?

2021-09-06

老鼠找食物这道题不会(C++)

2021-09-04

逃亡的准备这道题怎么做,给代码(C++)

2021-08-29

这道题错哪里了?(C++)

2021-08-28

求和这道题怎么做,给代码(C++)

2021-08-28

这道题出了什么错,该怎么改?

2021-08-27

刷题这道题怎么做,求代码(C++)

2021-08-27

为啥安装了java用不了apt?

2021-08-26

收入计划这道题不会做,求代码(C++)

2021-08-26

星际穿越这道题不会,给代码(C++)

2021-08-25

小齐的数学难题,给代码(C++)

2021-08-24

中秋团圆,此题不会,C++,求代码

2021-08-24

这道题该怎么做,给代码(C++)

2021-08-21

这道题是dfs还是bfs?(C++)

2021-08-21

这道题哪里错了?(C++)

2021-08-19

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除