- 博客(14)
- 收藏
- 关注
原创 sftp 文件上传到服务器出错 Permission denied
sftp 文件上传到服务器出错 Permission deniedsudo chmod 777 dir_name(你所上传到的的文件夹名)sudo chmod 777 dir_name(你所上传到的的文件夹名)
2021-04-08 19:24:07 6260 2
原创 C++中sort函数对于结构体的的应用(2)——针对优先队列排序
方法一:结构体内重载#include <iostream>#include<stdio.h>#include <string.h>#include <algorithm>#include <vector>#include <queue>using namespace std;const int maxn = 1...
2019-07-03 21:27:39 182
原创 C++中sort函数对于结构体的的应用(1)——针对结构体数组排序
方法一:结构体内重载#include <iostream>#include<stdio.h>#include <string.h>#include <algorithm>#include <vector>#include <queue>using namespace std;const int maxn = 1...
2019-07-03 21:08:27 1017
原创 C++结构体内写构造函数,报错error:no matching function for call to 'people::people()'
报这个错是因为你没有写默认构造函数typedef struct people{char name[20];int age;int weight;people(){}///默认构造函数一定要加!!!people(char nam[], int ag, int we){strcpy(name, nam);age = ag;weight = we;}}speople;...
2019-07-03 20:55:43 5527 6
原创 win10下visualc++6.0&&c++test6.0安装
链接:https://pan.baidu.com/s/1xuKC25Lwqb5KXgLApHwzvA提取码:jl6r首先安装vc6.0,然后安装c++test,c++test会自动集成到vc6.0里面。由于c++test6.0版本太老,无法与win10兼容,需要对c++test兼容性进行设置。步骤如下:右击c++test–>属性–>兼容性–>以兼容模式运行这个程序(win...
2019-05-13 11:43:04 1067 1
原创 PAT甲级1056 Mice and Rice (25 分)
/*题意难理解用样例来解释11 325 18 0 46 37 3 19 22 57 56 106 0 8 7 10 5 9 1 4 2 3Np = 11,表示老鼠的数量Ng = 3,表示比较的时候每3个老鼠一组weight[]:25 18 0 46 37 3 19 22 57 56 10,第i个老鼠的重量是weight[i]6 0 8 7 10 5 9 1 4 2 3,比较的顺序...
2018-12-08 16:05:44 123
原创 PAT甲级1054
#include &amp;lt;bits/stdc++.h&amp;gt;using namespace std;map&amp;lt;int, int&amp;gt; mp;struct node{ int color; int num; node(int cc, int nn){ color = cc; num = nn; } friend ...
2018-12-07 18:01:20 153
原创 PAT甲级1052
#include <bits/stdc++.h>using namespace std;const int maxn = 1e5+2;struct node{ int addr; int key; int next; friend bool operator < (node a, node b){ return a.key...
2018-12-07 16:57:19 119
原创 PAT甲级1051
#include &amp;amp;amp;lt;bits/stdc++.h&amp;amp;amp;gt;using namespace std;int main(){ int M, N, K; scanf(&amp;amp;quot;%d%d%d&amp;amp;quot;, &amp;amp;amp;amp;M, &amp;amp;amp;amp;N, &amp;am
2018-12-06 19:47:05 104
原创 PAT甲级1048
#include <bits/stdc++.h>using namespace std;int rec[1002];///坑,当M == 1000(或某个比较大的数),V1是个较小的数,V2 = M-V1较大可能会越界int main(){ int N, M; while(~scanf("%d%d", &N, &M)){ mem...
2018-12-06 10:49:11 123
原创 PAT甲级1039
///该题与甲级1047类似,可以作参考#include <bits/stdc++.h>using namespace std;const int maxn = 1e6;priority_queue<int, vector<int>, greater<int> > q[maxn];///用优先队列数组存储,一边输入一边存储,将名字转换成数...
2018-12-05 17:41:16 140
原创 PAT甲级1040
///易忽略偶数对称情况,例如样例是"abccba"的情况///所以分两次遍历,一次是奇数对称情况,一次是偶数对称情况#include <bits/stdc++.h>#include <string>#include <iostream>using namespace std;int main(){ char s[1002]; /...
2018-12-05 17:37:43 287
原创 PAT甲级1047
#include <bits/stdc++.h>using namespace std;const int maxk = 2502;priority_queue<string, vector<string>, greater<string> > pq[maxk];///使用优先队列数组,每一门课程对应一个优先队列,输入的过程中保存,输入完接...
2018-12-05 17:23:34 186
原创 codeblocks快速注释多行&快速取消多行注释
codeblocks快速注释多行&amp;快速取消多行注释ctrl+shift+C:选中多行,按下快速注释掉选中行ctrl+shift+X:选中多行,按下快速取消选中行的注释
2018-12-05 16:55:25 3265 4
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人