- 博客(12)
- 资源 (1)
- 收藏
- 关注
原创 Hyperledger Fabric 1.0安装过程中出现的一些问题和解决方法
1.所安装的源代码文件夹一般选择安装在root中,若安装在当前用户文件夹下可能会出现路径问题。 2.出现拨号失败的情况时可能是因为以前启动的遗留问题,这个时候需要setup down一下再重新启动。 3.docker安装镜像时记得注消重启,否则会非常的慢。
2018-02-07 12:07:23
1094
原创 phpstorm下get方法可用而post方法不可用的解决方法
昨天遇到了这个问题很久都得不到解决,后来发现原来是phpstorm的内置webserver有问题 所以这个问题有如下两种解决方案: 解决方案一:将工程放在apache2的工作目录下etc/www/https 解决方案二:将php的默认使用的webserver换成你本地下载的apchae2 具体设置在tools-》configuration中
2017-12-24 12:18:53
524
原创 以socket为基础的java聊天软件
package MultiTalkServer; import java.net.*; import java.io.*; public class MultiTalkServer { public static void main(String[] args) throws IOException { ServerSocket serverSocket
2017-06-05 17:01:50
490
原创 hzau 20170121 c
#include using namespace std; int a,b,c=1; void get_ans() { c=1; a = a % 10; while(b>0) { if(b % 2 == 1) c= (c * a) % 10; b = b/2; a = (a * a) % 10; } } int ma
2017-06-05 16:59:49
236
原创 hzau training 20170121 b
#include #include #include using namespace std; int a[505],b[505],c[505]; int ab[505*505]; int la,lb,lc; int times,temp; bool judge_num(int l,int r,int x) { int mid; while(l {
2017-06-05 16:58:35
268
原创 hzau training20170121 a
#include #include #include using namespace std; int a[100005]; int n,c; bool judge_num(int x) { int temp=a[0]; int d=1,i; for(i=1;i { if(a[i]-temp>=x) {
2017-06-05 16:57:49
220
原创 POJ3278
#include #include #include #include using namespace std; int ans[100001],vis[100001]; queue que; int bfs(int sp,int ep) { que.push(sp); int i=0,fnp,snp; ans[sp]=0; vis[sp]=
2017-06-05 16:55:53
239
原创 uva10474
#include #include using namespace std; int mm[10001]; int nn[10001]; int main() { int m,n,i,pos,cas=1; while(cin>>m>>n&&m!=0&&n!=0) { for(i=0;i { ci
2017-06-05 16:54:49
275
原创 用递归方式打印排列
在以前的acm比赛中用到很多次的这个方法但却没什么思路,这次正好做到POJ1753,索性把这个末班写在前面。 以数组1 2 3 4 5 6 选 3个 排列为例 思路如下 首先从后往前选第一个所选出的数的范围是是6-2=4个 同理第二个数为5-1=4个 第三个为3个 然后压缩原数组为1 2 3 4 5再次进行选择 以此类推 可以看出使用递归来写较为方便 因此我们用两个数组分别存储原数组和
2017-03-13 17:00:13
392
转载 初学java对java的调用顺序的理解
构造器调用顺序: 一在类的内部,变量定义的先后顺序决定了初始化的顺序。即使变量定义散布于方法定义之间,它们仍旧会在任何方法(包括构造器)被调用之前得到初始化。 既:先变量后方法,按顺序 class Tag { Tag(int marker) { System.out.println("Tag(" + marker + ")"); } } class Card { Tag t1 =
2017-03-01 20:05:35
248
原创 HDU1312 深搜 red and black
hdu1312 Problem Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of
2017-02-27 17:33:15
360
原创 hud1241-DFS求连通块
Problem Description The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a
2017-02-27 12:05:36
311
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅