摘要: 引:http://blog.csdn.net/anxuegang/article/details/6157927 证书基本的文件类型和协议有: PEM、DER、PFX、JKS、KDB、CER、KEY、CSR、CRT、CRL 、OCSP、SCEP等。 PEM – Openssl使用 PEM(Priva 阅读全文
posted @ 2017-04-13 10:33 gccbuaa 阅读(1953) 评论(0) 推荐(0) 编辑
摘要: 1. 函数模板 函数模板是一个独立于类型的函数,可作为一种方式。产生函数的特定类型版本号。 // implement strcmp-like generic compare function // returns 0 if thevalues are equal, 1 if v1 is larger 阅读全文
posted @ 2017-04-13 09:34 gccbuaa 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 推断三角形 时间限制:1000 ms | 内存限制:65535 KB 难度:2 描写叙述 小明非常喜欢研究三角形。如今,小明已经知道三角形的三条边。假设三条边能组成三角形,小明就会非常高兴,他就会得到一个“YE”,假设他经过进一步的研究知道它又是等腰三角形, 他又会得一个“YE”,他再次研究出它又是 阅读全文
posted @ 2017-04-13 08:06 gccbuaa 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 效果: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" 阅读全文
posted @ 2017-04-12 21:55 gccbuaa 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Given inorder and postorder traversal of a tree, construct the binary tree. Note: You may assume that duplicates do not exist in the tree. the idea is 阅读全文
posted @ 2017-04-12 20:23 gccbuaa 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 一、Playground介绍 Playground是Xcode6中自带的Swift代码开发环境。俗话说“功欲善其事,必先利其器”。曾经在Xcode5中编写脚本代码。比如编写JS。其编写过程非常痛苦,Xcode编辑器对脚本语言编写支持不好,但Playground让编写Swift代码不在痛苦。使用Pla 阅读全文
posted @ 2017-04-12 19:42 gccbuaa 阅读(583) 评论(0) 推荐(0) 编辑
摘要: 题目来自于Leetcode https://leetcode.com/problems/pascals-triangle/ Given numRows, generate the first numRows of Pascal's triangle. For example, given numRo 阅读全文
posted @ 2017-04-12 19:01 gccbuaa 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 题意:给你C个挂钩,W个钩码,要你能使一个天平平衡 数据解释: 2 4 -2 3 3 4 5 8 以原点为支点。那么-2代表支点左边2处有一个钩码,同理3代表右边的点 所以案例数据有一个成立的样例是(3+5)*3=(4+8)*2或是(3+4+5)*2=8*3(力臂平衡) 有2种情况所以输出2; 思路 阅读全文
posted @ 2017-04-12 17:27 gccbuaa 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 差点儿全部程序猿的第一堂课都是学习helloworld程序,以下我们先来重温一下经典的C语言helloworl /* hello.c */ #include <stdio.h> int main() { printf("hello world!\n"); return 0; } 这是一个简单得不能再 阅读全文
posted @ 2017-04-12 16:14 gccbuaa 阅读(798) 评论(0) 推荐(0) 编辑
摘要: 不知道各位有没有遇到过这种情况: 第一次一个apk界面。然后本来想在某处requestFocus()使之获得焦点来显示的,可是直接调用却不行,如图1所看到的。 图1 焦点的位置 出现这种现象是Android载入刷新UI的时候,是从左到右,从上到下的顺序。正在载入的过程中,假设此时requestFoc 阅读全文
posted @ 2017-04-12 15:30 gccbuaa 阅读(797) 评论(0) 推荐(0) 编辑