会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
西湖盗月
博客园
首页
新随笔
联系
管理
订阅
2024年12月27日
原生js发起网络请求
摘要: 网页常见的集中网络请求 XMLHttpRequest: 是浏览器原生的网络请求对象,通过创建实例、设置请求方法与 URL、监听状态变化等多个步骤来发起和处理请求。例如先 new XMLHttpRequest() 创建实例,再用 open 方法设置请求细节,最后 send 发送请求,并通过 onrea
阅读全文
posted @ 2024-12-27 16:47 西湖盗月
阅读(227)
评论(0)
推荐(0)
2020年11月20日
输出天干地支
摘要: 看到有些天干地支的匹配是不对的,不是简单的for - for循环 而是配对出现的 a = ['甲','乙','丙','丁','戊','己','庚','辛','壬','癸'] b = ['子','丑','寅','卯','辰','巳','午','未','申','酉','戌
阅读全文
posted @ 2020-11-20 16:40 西湖盗月
阅读(148)
评论(0)
推荐(0)
2020年11月13日
蓝桥0531-输出Y
摘要: #include <cstdio> #include <cstring> #include <iostream> #include <stdio.h> #include <iomanip> #include <string> using namespace std; int main() { int
阅读全文
posted @ 2020-11-13 17:26 西湖盗月
阅读(86)
评论(0)
推荐(0)
蓝桥0615-判断四位数字前后两组是否相等
摘要: #include <cstdio> #include <cstring> #include <iostream> #include <stdio.h> #include <iomanip> #include <string> using namespace std; int main() { int
阅读全文
posted @ 2020-11-13 16:50 西湖盗月
阅读(148)
评论(0)
推荐(0)
蓝桥0707-探测器上下浮动
摘要: #include <cstdio> #include <cstring> #include <iostream> #include <stdio.h> #include <iomanip> #include <string> using namespace std; int main() { int
阅读全文
posted @ 2020-11-13 16:08 西湖盗月
阅读(97)
评论(0)
推荐(0)
蓝桥0723-超级素数
摘要: #include <cstdio> #include <cstring> #include <iostream> #include <stdio.h> #include <iomanip> using namespace std; int SuShu(int n) { //去除小于2的数 if(n
阅读全文
posted @ 2020-11-13 15:16 西湖盗月
阅读(137)
评论(0)
推荐(0)
蓝桥0731-输出"*"组成的2
摘要: #include <cstdio> #include <cstring> #include <iostream> #include <stdio.h> #include <iomanip> using namespace std; int main() { int n = 0; cin >> n;
阅读全文
posted @ 2020-11-13 14:34 西湖盗月
阅读(88)
评论(0)
推荐(0)
蓝桥0817-闰年判断个数
摘要: #include <cstdio> #include <cstring> #include <iostream> #include <stdio.h> using namespace std; bool CheckYear(int n) { if(n % 400 == 0) return true;
阅读全文
posted @ 2020-11-13 14:21 西湖盗月
阅读(113)
评论(0)
推荐(0)
蓝桥0815-3个字符比较输出
摘要: #include <cstdio> #include <cstring> #include <iostream> #include <stdio.h> using namespace std; int main() { //字符判断 char a[5]; cin.getline(a,4); if(a
阅读全文
posted @ 2020-11-13 14:19 西湖盗月
阅读(84)
评论(0)
推荐(0)
2020年10月23日
特兰数列及其应用 C++
摘要: #include <iostream> using namespace std; //卡特兰数列原理及应用 int catalan(int n){ if (n == 1)return 1; if (n == 2)return 1; int res = 0; for (int i = 1; i <=
阅读全文
posted @ 2020-10-23 10:53 西湖盗月
阅读(132)
评论(0)
推荐(0)
下一页
公告