码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
16进制和字符串(包括中文)的转换
package XXXX; import java.io.ByteArrayOutputStream; /**  * Description  字符串(包含中文)和16进制之间的转换  */ public class CodeChange {  /**  * 16进制数字字符集  */  private static String hexString="012345678...
分类:其他好文   时间:2015-01-06 11:59:30    阅读次数:173
Operation on character string to delete same alphabet
#include #include char a[]={'a','b','a','c','a','c','d','e','k','b'}; typedef char key_type; typedef struct node{ key_type key; struct node *next; }node, *pnode; void insert(pnode *root, key_type k...
分类:其他好文   时间:2015-01-06 11:58:17    阅读次数:121
CString与string之间的转换
(1)CString转换为string CString cs(_T("cs")); string s; s = (LPCSTR)(CStringA)(cs); (2)string转换为CString string s ="Hello World!中国"; CString cs(s.c_str());...
分类:其他好文   时间:2015-01-06 11:57:22    阅读次数:165
C#-结构体
结构体:相当于是我们自己定义的一种复杂的类型。int... double float bool char string DateTime 数组类型生活中大部份的对象都是复合型的对象。如何定义结构体类型?一般来说结构体的定义要放在class的外面或class的里面,尽量不放在Main的里面。struc...
分类:Windows程序   时间:2015-01-06 11:41:47    阅读次数:168
C# Post发送数据返回页面结果
1 public string GetPage(string posturl, string postData) 2 { 3 Stream outstream = null; 4 Stream instream = null; 5 ...
分类:Windows程序   时间:2015-01-06 11:37:36    阅读次数:288
selenium+JDBC实现参数自动化测试
测试模拟环境:在www.1905.com网站中执行两个用户的登陆退出操作需要的文件有:1、User的实例类:public class User { private String username; private String password; public String get...
分类:数据库   时间:2015-01-06 11:32:24    阅读次数:201
C# string类型和byte[]类型相互转换
string类型转成byte[]:byte[]byteArray=System.Text.Encoding.Default.GetBytes(str);byte[]转成string:stringstr=System.Text.Encoding.Default.GetString(byteArray)...
分类:Windows程序   时间:2015-01-06 11:30:06    阅读次数:202
容器初始化、赋值、关系运算
1.vector初始化方法1.1vector、list、deque、string初始化方法//四种初始化方法 //初始化方法1 //1.10个1; vector vec1(10, 1); vector vec2{0,1,2};//列表初始化 vector vec3; ...
分类:其他好文   时间:2015-01-06 11:29:16    阅读次数:400
[C++]LeetCode: 69 Multiply Strings
题目: Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers can be arbitrarily large and are non-negative. Answer 1: 基础法 大整数...
分类:编程语言   时间:2015-01-06 10:11:54    阅读次数:222
华为机试—最长回文子串
输入一个字符串,输出最长回文子串。当最长回文子串不止一个时,全部输出。 #include #include using namespace std; #define N 100 string convert(string s) { string out=""; int len=s.length(); for (int i=len-1;i>=0;i--) { ...
分类:其他好文   时间:2015-01-06 10:04:03    阅读次数:134
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!