摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System. 阅读全文
posted @ 2024-06-22 15:09 王一行(小号) 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> #include "minecraft.h" #include <Windows.h> using namespace std; TxMinecraft mc; int main() { bool con = mc.ConnectMinecraft( 阅读全文
posted @ 2024-06-15 10:00 王一行(小号) 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n==1){ cout<<1; return 0; } vector<int> a,sum; string x = to_string(n); fo 阅读全文
posted @ 2024-06-14 19:46 王一行(小号) 阅读(1) 评论(0) 推荐(0) 编辑
摘要: //mysocket.h #ifndef __MYSOCKET_H__ #define __MYSOCKET_H__ //头文件保护 #include<bits/stdc++.h> #include<winsock.h> #pragma comment(lib,"ws2_32.lib") using 阅读全文
posted @ 2024-06-08 10:03 王一行(小号) 阅读(2) 评论(0) 推荐(0) 编辑
摘要: //客户端 #include "mysocket.h"//头文件 using namespace std; int main(){ cout<<" 客户端 \n"; startup(); //启动 //检测版本号 if(LOBYTE(wsdata.wVersion)!=2 || HIBYTE(wsd 阅读全文
posted @ 2024-06-08 10:03 王一行(小号) 阅读(29) 评论(0) 推荐(0) 编辑
摘要: //服务端(以C++作范例) #include"mysocket.h" //导入头文件:由于mysock头文件本身就有其它文件,这里无需导入 using namespace std; SOCKET s_accept; int main(){ cout << " 服务端 \n"; cout << "正 阅读全文
posted @ 2024-06-08 10:02 王一行(小号) 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <vector> using namespace std; int main(){ string a; int b,j = 0,j1 = 0; cin>>a>>b; vector<int> x,sum; for(int i = a.size( 阅读全文
posted @ 2024-06-07 20:29 王一行(小号) 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cmath> #include <vector> using namespace std; int main(){ string a,b; cin>>a>>b; vector<int> x,y,sum; for(int i = a.size 阅读全文
posted @ 2024-06-01 16:00 王一行(小号) 阅读(3) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cmath> #include <vector> using namespace std; int main(){ string a,b; cin>>a>>b; vector<int> x,y; for(int i = a.size()-1 阅读全文
posted @ 2024-05-31 20:04 王一行(小号) 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cmath> #include <vector> using namespace std; int main(){ string a,b; cin>>a>>b; bool a1 = true,b1 = true; for(int i = 0 阅读全文
posted @ 2024-05-25 14:58 王一行(小号) 阅读(3) 评论(0) 推荐(0) 编辑