摘要: #include <bits/stdc++.h> using namespace std; int main() { //判断从未排序的第一项和排序好的进行比较,小于就交换,不小于就停止。 int num[]={3,5,1,8,2}; for(int i=1;i<5;i++) { for(int j 阅读全文
posted @ 2024-04-05 09:41 hanxuyao 阅读(18) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int main() {//基本思想:从数组的未排序区域选出一个最小的数//把他与数组中的第一个元素交换位置//然后再从剩下的未排序区域中选出一个最小的元素//把它与数组中的第二个元素交换位置 int num 阅读全文
posted @ 2024-04-05 08:54 hanxuyao 阅读(16) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int main() { int a=65; int count = 0,k=0; a=65; for(int i = 0; i < 10 ; i++ ) { a=65; for(count=0;count< 阅读全文
posted @ 2024-03-15 20:12 hanxuyao 阅读(8) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> #include "hxy.h" using namespace std; int main() { fx h; h.set(); h.get(); return 0; } #include <bits/stdc++.h> using namespa 阅读全文
posted @ 2024-01-28 11:18 hanxuyao 阅读(13) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int main() { list <int> a = {1,2,3,4,5}; list <int> b = {6,7,8,9,10}; a.splice(a.end(),b,b.begin(),b.end 阅读全文
posted @ 2024-01-05 19:48 hanxuyao 阅读(34) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; struct student{ int id; string name; int age; int grade; }s; void zjm() { cout<<"Welcome to the Student 阅读全文
posted @ 2023-12-22 20:01 hanxuyao 阅读(36) 评论(0) 推荐(0)
摘要: #include <iostream>#include <windows.h>using namespace std;/*声明变量 */HWND hand=NULL; //游戏窗口DWORD pid=0;//游戏进程IDHANDLE hProcess=NULL;//进程对象DWORD BaseVal 阅读全文
posted @ 2023-12-15 20:04 hanxuyao 阅读(24) 评论(0) 推荐(0)
摘要: #include <iostream> #include <vector> using namespace std; int main() { vector<int> a(20); a.push_back(1); int arr[]={1,2,3,4,5}; vector<int> b(arr,ar 阅读全文
posted @ 2023-12-08 19:55 hanxuyao 阅读(12) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; struct CARD{ //ATTRIBUTE: string NAME; int ID; string CLASSROOM; float MONEY; int MONER_TYPE; string COS 阅读全文
posted @ 2023-11-19 10:04 hanxuyao 阅读(20) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h>using namespace std;int main(){ string CALCNUM; string NUMFIRST,NUMSECOND; int NUMFIRSTINT[100],NUMSECONDINT[100]; getline(cin 阅读全文
posted @ 2023-11-12 09:43 hanxuyao 阅读(28) 评论(0) 推荐(0)