最近工作中需要客户端和服务器使用https协议进行通信,我负责客户端程序的编写,想到以前在深入理解操作系统中看过web服务器的实现,代码整理如:
#include"apue.h"
extern char **environ;
void clienterror(int fd,char *cause,char *errnum,char *shortmsg,char *longmsg)
{...
分类:
Web程序 时间:
2014-07-28 00:19:59
阅读次数:
325
终于知道国足多么不容易只要打平就能晋级是说的简单。。
傻逼了,开始没看懂题弄了什么净胜球。。。
直接开搞。
第一个数要输出自己最小的进球 must晋级 0 30 就只能输出30
第二个数要输出自己最大的进球 对方may晋级 30 0 就只能输出30
#include
#include
int main()
{
char s[222];
int a,b,t;...
分类:
其他好文 时间:
2014-07-27 11:43:34
阅读次数:
205
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:
其他好文 时间:
2014-07-27 09:49:52
阅读次数:
237
Problem Description:
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers
sums to T.
Each number in C may only b...
分类:
其他好文 时间:
2014-07-26 15:24:02
阅读次数:
252
Problem Description
In the shooting game, the player can choose to stand in the position of [1, X] to shoot, you can shoot all the nearest K targets. The value of K may be different on different shoo...
分类:
其他好文 时间:
2014-07-26 15:08:00
阅读次数:
383
题目:Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand may be an integer or anothe....
分类:
编程语言 时间:
2014-07-26 14:14:35
阅读次数:
225
Insert IntervalGiven a set ofnon-overlappingintervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals...
分类:
其他好文 时间:
2014-07-26 01:35:07
阅读次数:
246
Given a set ofnon-overlappingintervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals were initially...
分类:
其他好文 时间:
2014-07-26 00:37:46
阅读次数:
237
Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume that there will be on...
分类:
其他好文 时间:
2014-07-25 14:18:51
阅读次数:
284
Blocks
Time Limit: 5000MS
Memory Limit: 65536K
Total Submissions: 4173
Accepted: 1661
Description
Some of you may have played a game called 'Blocks'. There are n bl...
分类:
其他好文 时间:
2014-07-25 11:11:22
阅读次数:
312