题目:输出大写字母
输入一个字符串,输出其中的大写字母
输入 2, sdARSFGfg
输出 ARSFG
#include
#include
using namespace std;
void filter(string str)
{
int i,len;
len=str.length();
for(i=0;i<l...
分类:
其他好文 时间:
2014-12-24 20:13:53
阅读次数:
152
题目:输出大写字母
输入一个字符串,输出其中的大写字母
输入 2, sdARSFGfg
输出 ARSFG
#include
#include
#include
using namespace std;
int main(int argc, char *argv[])
{
string s;
while(getline(cin,s))
{...
分类:
其他好文 时间:
2014-12-24 20:12:48
阅读次数:
203
【题目】
Given a binary tree
struct TreeLinkNode {
TreeLinkNode *left;
TreeLinkNode *right;
TreeLinkNode *next;
}
Populate each next pointer to point to its nex...
分类:
其他好文 时间:
2014-12-24 20:13:35
阅读次数:
151
【题目】
Follow up for problem "Populating Next Right Pointers in Each Node".
What if the given tree could be any binary tree? Would your previous solution still work?
Note:
You may only use...
分类:
其他好文 时间:
2014-12-24 20:13:31
阅读次数:
151
0000000 1111111 2222222 3333333 4444444 5555555 ------- 6666666 排除第一行变色,剩下的都变色
分类:
其他好文 时间:
2014-12-24 20:09:44
阅读次数:
128
之前写了个2.14版本的动作变化,见http://www.cnblogs.com/creeper/p/3531304.html3.x版本变化了很多,但是核心思想还是没有变化,所以对应3.x版本的改了一下放上来有空的话把tolua的转换方法也放上来吧:) 1 #ifndef __MISC_NODE_C...
分类:
其他好文 时间:
2014-12-24 20:09:20
阅读次数:
224
#!/usr/bin/envpython#-*-coding:utf8-*-#someimports:from__future__importprint_functionimportsys#displayinfos:PYTHONVERSION=sys.version_info[0]*10+sys.v...
分类:
其他好文 时间:
2014-12-24 20:07:06
阅读次数:
167
http://www.cnblogs.com/langtianya/简约复制去Google翻译翻译结果
分类:
其他好文 时间:
2014-12-24 20:06:51
阅读次数:
271
注意细节边界的时候 容易忽略错误 在除给定的例子之外 想一个特殊符合题意的特殊例子。#include#include#includeusing namespace std;void GetFail(int *f,char* P){ int m=strlen(P); f[0]=f[1]=0...
分类:
其他好文 时间:
2014-12-24 20:08:34
阅读次数:
143
原由AES已经变成目前对称加密中最流行算法之一,AES可以使用128、192、和256位密钥,并且用128位分组加密和解密数据。项目中需要使用AES对密码信息进行加密,由嵌入式设备使用C语言进行加密,通过服务器中转后,由Android APP完成解密。个人自测使用python完成。Python代码 ...
分类:
其他好文 时间:
2014-12-24 20:07:47
阅读次数:
158
“The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-ref?,default-action-ref?,default-class-ref?,global...
分类:
其他好文 时间:
2014-12-24 20:06:33
阅读次数:
134
描述:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two...
分类:
其他好文 时间:
2014-12-24 20:03:47
阅读次数:
129
OnCreateContextMenuListener接口是用来处理上下文菜单显示事件的监听接口。该方法是定义和注册上下文菜单的另一种方式。该接口中事件处理的回调方法签名如下所示。public void onCreateContextMenu(ContextMenu menu, View v, Co...
分类:
其他好文 时间:
2014-12-24 20:05:54
阅读次数:
199
最近有机会接触Tengine,官方文档连接:http://tengine.taobao.org/index_cn.html。 关于Tengine的简介如下: Tengine是由淘宝网发起的Web服务器项目。它在Nginx的基础上,针对大访问量网站的需求,添加了很多高级功能和特性。Tengin...
分类:
其他好文 时间:
2014-12-24 20:00:59
阅读次数:
845