码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
编译原理语法分析实验(Java实现)
import java.util.Stack; public class LL1 { //加入同步符号的LL(1)分析表 private String [][] analysisTable = new String[][]{ {"TZ","","","TZ","synch","synch"}, {"","+TZ","","","ε","ε"}, {"FY","syn...
分类:编程语言   时间:2015-05-31 09:19:18    阅读次数:230
Valid Parentheses
public class Solution { public boolean isValid(String s) { if(s==null || s.length() st = new Stack(); for(int i=0;i<s.length();i++){ ...
分类:其他好文   时间:2015-05-31 09:03:35    阅读次数:112
Delphi webservices 传数据
数据集数据转换为XMLfunction ReplaceString(AString: string): string;begin Result := StringReplace(AString, '&', '&amp;', [rfReplaceAll]); Result := StringRep.....
分类:Windows程序   时间:2015-05-31 06:41:17    阅读次数:121
汉字与区位码互转(Delphi代码,很容易理解)
汉=BABA(内码)=-A0A0=2626(区位码)字=D7D6(内码)=-A0A0=5554(区位码) //汉字转区位码function Str2GB(const S: AnsiString): string; const G = 160; // 160 = hA0 var n,...
分类:Windows程序   时间:2015-05-31 01:19:53    阅读次数:194
使用进程名禁止程序运行多次
string moduleName = Process.GetCurrentProcess().MainModule.ModuleName;string prcessName = System.IO.Path.GetFileNameWithoutExtension(moduleName);Proce...
分类:系统相关   时间:2015-05-31 01:18:20    阅读次数:132
8.javascript获取表单中两个数字,并判断大小
获取表单数据的方式:1.表单注意些id2.使用document.getElementById("num").value 获取值3.一定要注意现在得到是string类型,可以用alert(typeof(num))获取数据类型4.使用parseInt函数将string类型转换成int类型,然后在判断5....
分类:编程语言   时间:2015-05-31 01:13:55    阅读次数:127
再回首,Java温故知新(五):Java基本数据类型之字符型
Java作为一种强类型语言,意味着每一个变量都会有特定的类型,Java共有8种基本类型,其中有4种整型(byte、short、int、long)、两种浮点型(float、double)、1种字符型(char)和一种布尔型(boolean),值得注意的是,虽然字符串String非常常用,但是它却不.....
分类:编程语言   时间:2015-05-30 23:53:29    阅读次数:160
C++中不同数据类型的互相转换
1.string --> char * char * p = (char*)str.c_str();2.char * -->string char *p = "aaa"; string str(p);3.int-->stringint n=100000;char t[38];int i = 0;if...
分类:编程语言   时间:2015-05-30 22:40:21    阅读次数:167
jQuery之动画效果
1、show()显示效果 语法:show(speed,callback) Number/String,Function speend为动画执行时间,单位为毫秒。也可以为slow","normal","fast" callback可选,为当动画完成时执行的函数。 show(speed,[e...
分类:Web程序   时间:2015-05-30 22:34:30    阅读次数:213
Android 开发工具类 30_sendXML
String xml = "hello30"; 1 private static boolean sendXML(String path, String xml) throws Exception{ 2 // 3 byte[] data = xml.getByte...
分类:移动开发   时间:2015-05-30 21:04:13    阅读次数:157
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!