码迷,mamicode.com
首页 >  
搜索关键字:ch    ( 3220个结果
netty4 HTTPclient 可添加参数
下了netty4的demo,但是发现给例子不能添加参数。所以自己改了一下,用netty实现http协议get请求并追加参数。HttpSnoopClient.java 1 import io.netty.bootstrap.Bootstrap; 2 import io.netty.channel.Ch...
分类:Web程序   时间:2014-10-23 14:20:35    阅读次数:581
UVA 1586 - Molar mass
#include #include int key[5]; double value[5]={0,12.01,1.008,14.01,16.00}; int T; int num=0,p=0,flag=0; int check(char ch) { switch(ch) { case 'C': return 1; case 'H': ...
分类:其他好文   时间:2014-10-22 18:13:12    阅读次数:150
uva11552
题意: 给一个长度为n的串n#include #include #include using namespace std;const int maxn = 1005;int dp[maxn][30];int ch[maxn][30];int len[maxn];vector common[maxn]...
分类:其他好文   时间:2014-10-22 00:37:12    阅读次数:192
HDU 4300 Clairewd’s message(扩展KMP)
思路:extend[i]表示原串以第i开始与模式串的前缀的最长匹配。经过O(n)的枚举,我们可以得到,若extend[i]+i=len且i>=extend[i]时,表示t即为该点之前的串,c即为该点之前的str串,最后输出即可。 #include #include #include #include using namespace std; const int N=100010; ch...
分类:其他好文   时间:2014-10-21 23:18:18    阅读次数:267
兼容chrome和ie的音乐播放
兼容chrome和ie的音乐播放(Ie7 Ie8 Ie9 均测试过 ) aa function playSound(){ var snd_ie = document.getElementById('snd_ie'); snd_ie.src = "./alert.wav" var snd_chrome = document.getElementById('snd_ch...
分类:其他好文   时间:2014-10-20 17:23:13    阅读次数:225
java读写文件大全
java读写文件大全最初java是不支持对文本文件的处理的,为了弥补这个缺憾而引入了Reader和Writer两个类,这两个类都是抽象类,Writer中 write(char[] ch,int off,intlength),flush()和close()方法为抽象方法,Reader中read(cha...
分类:编程语言   时间:2014-10-20 16:40:07    阅读次数:228
Android开发有用技巧:推断当前系统语言版本号
Locale locale = getResources().getConfiguration().locale; String language = locale.getLanguage();以上代码能够获取到当前系统的语言码,中文的语言码为ch,英文的语言码为en,完整的语言码例如以下:bn_....
分类:移动开发   时间:2014-10-20 14:58:58    阅读次数:188
兆芯笔试题(2015)找重复数最多的字母的数量以及位置
例子:“aaaabcaa”,查找a则返回值为0,长度为4; #include #include using namespace std; int find_max_repeat(char *str, char ch, int *len) {    char *p=str;    int num(0),start(0);    while(*p!='\0')    { ...
分类:其他好文   时间:2014-10-20 13:36:21    阅读次数:141
C语言函数---S
本文由 书画小说软件 整理发布 内容与本软件无关 更惬意的读、更舒心的写、更轻松的发布 最全古典小说网 由本软件发布所得 函数名: sbrk 功 能: 改变数据段空间位置 用 法: char *sbrk(int incr); 程序例: #include #include int main(void)  {     printf("Ch...
分类:编程语言   时间:2014-10-20 11:49:10    阅读次数:337
UVa 10946 - You want what filled?
题目:统计一个矩阵中所有的连通块的个数,按递减输出。 分析:搜索,floodfill。直接利用dfs求解即可。 说明:数组开小了╮(╯▽╰)╭。 #include #include #include #include #include using namespace std; char maps[55][55]; typedef struct tnode { char ch...
分类:其他好文   时间:2014-10-19 20:02:57    阅读次数:269
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!