上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: #include<stdio.h> #include<stdlib.h> #include<string.h> #include<ctype.h> #define inf 0x3f3f3f typedef struct { char id[50]; char name[50]; char gende 阅读全文
posted @ 2024-11-30 19:06 某朝 阅读(30) 评论(0) 推荐(0)
摘要: 一篇足够 阅读全文
posted @ 2024-11-30 11:27 某朝 阅读(16) 评论(0) 推荐(0)
摘要: Description 数据结构与算法实验题 Sins of a Solar EmpireP6 ★实验任务 正如你所知道的s_sin是一个贪玩的不得了的小P孩QAQ,你也知道他最近很喜欢玩一个叫做太阳帝国的原罪的策略游戏去年 他已经和疯狂的AI交战了整整一年。而现在,战斗的序幕又要拉开了。 在某个星 阅读全文
posted @ 2024-11-28 21:47 某朝 阅读(51) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstring> #include<algorithm> #include<queue> using namespace std; typedef pair<int, int>PII; const int N = 110; int n, m; 阅读全文
posted @ 2024-11-28 17:36 某朝 阅读(27) 评论(0) 推荐(0)
摘要: 1 #include <stdio.h> #include <string.h> int main() { char* p1 = "12345", * p2 = p1; //允许! char* p3, p4[80]; //strcpy(p3,p1); 此时p3为野指针! p3 = "12345"; 阅读全文
posted @ 2024-11-25 21:24 某朝 阅读(29) 评论(0) 推荐(0)
摘要: #include <stdio.h> void printBinary(unsigned int n) { int i; unsigned int mask = 1 << (sizeof(n) * 8 - 1); // 生成最高位的掩码 for (i = 0; i < sizeof(n) * 8; 阅读全文
posted @ 2024-11-22 22:01 某朝 阅读(27) 评论(0) 推荐(0)
摘要: 西电车向泉海明码 西电车向泉 尚硅谷 阅读全文
posted @ 2024-11-20 11:31 某朝 阅读(19) 评论(0) 推荐(0)
摘要: 下面有关数组的叙述中,只有( )是正确的: A)虽然不能对数组进行整体的赋值和IO等,但可以将整个数组作为参数传递给函数,函数也可以返回整个数组! B)C要求形参和相对应的实参都必须是类型相同的数组。 C)形参数组和实参数组为同一数组,共同拥有一段内存空间。 D)C语言规定数组名就是数组的首地址,但 阅读全文
posted @ 2024-11-17 20:01 某朝 阅读(19) 评论(0) 推荐(0)
摘要: c++能通过,c wrong #include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int n; while (cin >> n) { vector<int> odd, 阅读全文
posted @ 2024-11-16 15:33 某朝 阅读(20) 评论(0) 推荐(0)
摘要: 优先队列 用pair做优先队列priority_queue元素 简单讲解 阅读全文
posted @ 2024-11-13 20:24 某朝 阅读(82) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页