//设置PEM证书,pfx证书转pem方法:openssl pkcs12 -in 2000000501.pfx -out 2000000501.pem$cacert = ROOT_DIR."config/paykey/weixinss.pem";$ch = curl_init();curl_set....
分类:
Web程序 时间:
2014-07-03 21:19:52
阅读次数:
210
AUTH_MAD=AUTHN=ssh,x509,ldap,server_cipher,server_x509,EXECUTABLE=one_auth_madDATASTORE_BASE_PATH=/app/opennebula/var//datastoresDATASTORE_CAPACITY_CH...
分类:
其他好文 时间:
2014-07-03 06:35:48
阅读次数:
288
在c++中,const关键词出现在很多地方,有诸多的用途,也有很多的限制。这里简单的列举一下const声明和定义的注意事项:(const对象定义时必须初始化,下面的例子只是说明一下const位置的含义)const出现在声明或者定义变量的类型的前面的时候,const修饰的是变量本身如:const ch...
分类:
编程语言 时间:
2014-07-02 21:33:30
阅读次数:
215
C中的标准输入输出可以进行重定向到文件。示例程序:(C Primer Plus示例8.2)// echo_eof.c -- 重复输入,直到文件的结尾#include int main(void){ int ch; while ( (ch = getchar()) != EOF) ...
分类:
其他好文 时间:
2014-07-01 22:43:32
阅读次数:
273
补码输出# include int main(void){// int i = -5;// printf("%#X\n", i); // 补码输出// int j = 0xFFFFFFF5;// printf("%d\n", j); char ch = 0x80;/...
分类:
其他好文 时间:
2014-07-01 21:47:29
阅读次数:
225
$drug=array(
'ACEI'=>array(array('ch_name'=>'卡托普利','en_name'=>'captopril'),array('ch_name'=>'依那普利','en_name'=>'enalapril'),
array('ch_name'=>'赖诺普利','en_name'=>'lisinopril')),
'ARB...
分类:
Web程序 时间:
2014-07-01 15:56:29
阅读次数:
203
#include
#include
#include
using namespace std;
int main()
{
vector password;
int len = 0;
cout << "Enter password: ";
while( true ){
char ch = getch();
if( ch == 1...
分类:
编程语言 时间:
2014-06-29 23:57:16
阅读次数:
406
#include
int fputc(int c, FILE *stream);
int fputs(const char *s, FILE *stream);
int putc(int c, FILE *stream);
int putchar(int c);
int puts(const char *s);
fputc()写一个字符c,强制转换成一个unsigned ch...
分类:
编程语言 时间:
2014-06-27 23:46:49
阅读次数:
422
一直想自己写个游戏玩玩,好像很厉害的样子,终于今天下定决心写了个最经典的休闲的小游戏——贪吃蛇,当然也有借鉴别人的程序,但是整个代码都是和别人不一样的,直接上代码吧:
#include
#include
#include
#include
using namespace std;
#define ROW 22
#define COL 22
struct Point
{
char ch...
分类:
其他好文 时间:
2014-06-26 13:24:30
阅读次数:
196
最近写程序的时候发现一个这样的问题,一个if判断如下:[php]if (!empty(trim($ch_url))) { ...}[/php]执行程序报出如下错误:[code]Fatal error: Can't use function return value in write context ...
分类:
其他好文 时间:
2014-06-26 11:15:31
阅读次数:
195