项目中要在string.xml 中显示特殊符号,如@号冒号等,直接写肯定不行啦。。只能考虑使用ASCII码进行显示:@号 @:号 :空格  以下为常见的ASCII十进制交换编码: --> !"#$%&'()*+,-./:;=>?@[--]-->]^_...
分类:
移动开发 时间:
2015-05-08 18:03:54
阅读次数:
125
import java.awt.*;import java.awt.event.*;import javax.swing.*;public class Size { public static void main(String[] args) { // TODO Auto-gen...
分类:
其他好文 时间:
2015-05-08 17:51:50
阅读次数:
110
#include
#include
using namespace std;
const int max_length=10;
void print(int b[max_length][max_length],string X,int i,int j);
void LCS(string X,string Y,int b[max_length][max_length],int m,int n )
{...
分类:
编程语言 时间:
2015-05-08 16:36:08
阅读次数:
126
public string getPostBackStream(string rUrl) { WebClient myWebClient = new WebClient(); NameValueCollection myNameValueC...
/** * @Descriptionmap 将图片文件转化为字节数组字符串,并对其进行Base64编码处理 * @author temdy * @Date 2015-01-26 * @param path 图片路径 * @return */ public static String imageToBase64(String path)...
分类:
编程语言 时间:
2015-05-08 15:18:28
阅读次数:
144
目前整理出来三种形式:
可根据实际需要选择使用
String userNameUrl;
int beginIndex = 0;
int endIndex = 0;
userNameUrl = "454512@hongri@4944115455d9591b274648a06303d910de";
/**
* 方法一:
*/
beginIndex = userNameUrl.inde...
分类:
编程语言 时间:
2015-05-08 15:03:01
阅读次数:
235
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Drawing;
using System.Drawing.Imaging;
namespace 图片转化为字符串
{
class Program
{...
#include
#include
using namespace std;
bool find_str(string s1,string s2)
{
if(s1.empty()||s2.empty())
return false;
string::size_type pos=s1.find(s2);
return (pos!=string::npos)?true:false;
}
in...
分类:
其他好文 时间:
2015-05-08 14:54:42
阅读次数:
155
Dalvik指令集
.class public LCalculate;#定义类名
.super Ljava/lang/Object;#定义父类
.method public static main([Ljava/lang/String;)V#申明静态main()方法,L表示这是一个类
.registers 5 #方法中使用5个寄存器
.prologue #代码起始指令
nop...
分类:
编程语言 时间:
2015-05-08 14:54:24
阅读次数:
136
/** IO异常处理方式 */import java.io.*;public class FileWriterDemo2{ public static void main(String[] args) { FileWriter fw=null; try { fw=new FileWriter(".....
分类:
其他好文 时间:
2015-05-08 14:47:05
阅读次数:
120