public?static?void?toBmp(String?str,String?transactionID){
??BASE64Decoder?decoder?=?new?Decoder.BASE64Decoder();
??byte[]?bytes1;
??try?{
???bytes1?=?decoder.decodeBuffer(st...
分类:
其他好文 时间:
2014-10-28 12:25:32
阅读次数:
220
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;namespace qidi{ class Program { static void Main(str...
分类:
其他好文 时间:
2014-10-28 11:37:28
阅读次数:
130
刚看到题就想用数组做,发现大多数解也是用数组做的,突然看到一个清新脱俗的解法: 1 int atoi(const char *str) { 2 3 4 5 if(*str == '\0') return 0; 6 7 int n; 8 9 ...
分类:
其他好文 时间:
2014-10-28 08:10:59
阅读次数:
175
HDU 4704 Sum( 费马小定理 )理解能力果然拙计,,题目看半天没懂什么意思。#include #include #include using namespace std;typedef long long LL;#define MOD 1000000007char str[100010];...
分类:
其他好文 时间:
2014-10-28 00:29:36
阅读次数:
234
1 # include 2 struct Slist{ 3 int size; 4 struct sl* head; 5 }; 6 struct sl{ 7 int k; 8 struct sl* next; 9 }; 10 typedef str...
分类:
其他好文 时间:
2014-10-28 00:27:26
阅读次数:
303
1.NSString *str = [[NSString alloc]init]; //简单粗暴,基本用不到 2.NSString *str = [[NSString alloc]initWithFormat:@"xxx%@", str]; //最喜欢的常见方式了 3.NSString ...
分类:
移动开发 时间:
2014-10-27 22:55:57
阅读次数:
140
Python字符串是由数字、字母、下划线组成的一串字符,我们可以使用引号来创建字符串。如:str = 'Helloworld'在Python中没有char类型,单个字符也作为string使用;Python的字符串列表有2种取值顺序:A.自左向右,默认索引从0开始,索引长度最长为字符串长度-1B.自右...
分类:
编程语言 时间:
2014-10-27 22:54:15
阅读次数:
303
【题意简述】:给定两个字符串s和t,判断s是否是t的子串。长度不超过100000.
【分析】:简单的模拟吧。。
// 368K 16Ms
#include
#include
using namespace std;
int main()
{
int i,j;
char s[100000],t[100000];
while(cin>>s>>t)
{
long len1 = str...
分类:
其他好文 时间:
2014-10-27 19:33:12
阅读次数:
171
String str1 = null; str引用为空 String str2 = ""; str引用为空串 直接点就是null没有分配内存空间,而""分配了内存空间,因此str1还不是一个实例化的对象,而str2已经实例化。 注意因为null不是对象,""是对象。所以比较的时候必须是 if(str...
分类:
其他好文 时间:
2014-10-27 19:10:12
阅读次数:
139
C#学习1.判断输入的是否是数字 使用TryParse 格式:typeName.TryParse(string str,out typeName parameter); 好处: 1)如果输入的不是数字,不会抛出异常,只会返回false. 2)不用异常处理.异常处理需要使用更多的内存...