码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
上传图片
public int UpdateImgs(FileUpload FileUpload1, HttpServerUtility server, int id) { //如果不是图片文件 if (!isImg(FileUpload1)) return 0; string fileName = Fil....
分类:Web程序   时间:2015-02-09 17:33:21    阅读次数:164
数列排序
/**  * 给定一个长度为n的数列,将这个数列按从小到大的顺序排列  */ import java.util.*; public class 数列排序 { public static void main(String[] args) { Scanner in=new Scanner(System.in); int n=in.nextInt(); int[] a=new i...
分类:编程语言   时间:2015-02-09 16:08:43    阅读次数:166
T_SQL rowtype类型
T—SQL格式: declare   声明 begin 处理 end  --完成   nvl函数 nvl(string,value); 如果字符串不为空,返回字符串 如果字符串为空,返回value   下面,输入一个工号,显示所有信息。 declare sno emp.empno%type; e1 emp%rowtype; begin sno=&no; se...
分类:数据库   时间:2015-02-09 16:03:12    阅读次数:213
c++ string总结
?? 要想使用标准C++中string类,必须要包含 #include // 注意是,不是,带.h的是C语言中的头文件 using  std::string; using  std::wstring; 或 using namespace std; 下面你就可以使用string/wstring了,它们两分别对应着char和wchar_t。 string和wstring的用法是一样的,...
分类:编程语言   时间:2015-02-09 15:58:54    阅读次数:160
人民币 大写转换
public class NumberData { /**-人民币 大写转换 * * @param num ----要转化的数字 * @return */ public static String makeUpperCaseSum(String num...
分类:其他好文   时间:2015-02-09 15:53:41    阅读次数:95
leetcode[58]Length of Last Word
Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe...
分类:其他好文   时间:2015-02-09 15:40:23    阅读次数:114
leetcode[76]Minimum Window Substring
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example,S="ADOBECODEBA...
分类:Windows程序   时间:2015-02-09 15:38:06    阅读次数:176
leetcode[67]Add Binary
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".class Solution {public:string addBinary(string ...
分类:其他好文   时间:2015-02-09 15:32:50    阅读次数:127
cocos2dx3.4 分割plist图片
如果想要修改一个plist文件新打包成plist,而此刻原来的小图都找不到了,那只能把plist分解了,代码如下:void UiManage::DecodePlist(string imgPath,string plistPath){ FileUtils *pFileUtil=FileUtil...
分类:其他好文   时间:2015-02-09 15:31:35    阅读次数:404
leetcode[65]Valid Number
Validate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>trueNote:It is intended for the problem stat...
分类:其他好文   时间:2015-02-09 15:30:36    阅读次数:112
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!