码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
Cocos2d-js3.1——声音
播放背景音乐cc.audioEngine.playMusic(url,loop);@param{String}url声音路径@param{Boolean}loop是否循环播放停止背景音乐cc.audioEngine.stopMusic(releaseData);*@param{Boolean}rel...
分类:Web程序   时间:2015-02-02 22:52:14    阅读次数:6145
Hibernate学习---第五节:普通组件和动态组件
一、普通组件映射配置 1、创建组件类,代码如下: package learn.hibernate.bean; /** * 组件类 */ public class Phones { private String companyPhone; private String homePhone; priva...
分类:Web程序   时间:2015-02-02 21:25:15    阅读次数:232
Leetcode#20 Valid Parentheses
原题地址辅助栈代码: 1 bool isValid(string s) { 2 stack st; 3 4 for (auto c : s) { 5 if (st.empty()) 6 st.p...
分类:其他好文   时间:2015-02-02 21:21:59    阅读次数:120
TXT记事本转换PDF文件
使用的方式为,读取TXT记事本的内容,然后写入创建的PDF文件。 static void Main(string[] args) { const string txtFile = "D:\\1.txt"; const strin...
分类:其他好文   时间:2015-02-02 21:17:37    阅读次数:197
java中的中文变量和方法
在网上看到java居然支持中文变量名、方法。这里我只试了变量名和方法,类名这些没有试...。真是给力 1 package com.gxf.fun; 2 3 4 public class TestForChinese { 5 private String 字符串 = "字符串"; 6 ...
分类:编程语言   时间:2015-02-02 21:12:33    阅读次数:168
Android 生成和PULL解析xml
一、单个对象生成xml生成以下xml,该怎么生成呢? 1 123456 传说之美 2015-02-02 11:50:42先定义一个account类,属性有id、name、password、createDate。public class Account { private String ...
分类:移动开发   时间:2015-02-02 19:50:25    阅读次数:116
asp.net 后台注册脚本
string myScript = "function ShowPanel() { $('.nav a[href=\"#" + PanelType.wenben.ToString() + "\"]').tab('show'); }"; ScriptManager.Re...
分类:Web程序   时间:2015-02-02 19:49:34    阅读次数:165
Leetcode#171 Excel Sheet Column Number
原题地址注意从1开始索引,所以记得+1代码: 1 int titleToNumber(string s) { 2 int res = 0; 3 4 for (int i = 0; i < s.length(); i++) { 5 ...
分类:其他好文   时间:2015-02-02 19:42:12    阅读次数:145
Leetcode#168 Excel Sheet Column Title
原题地址26进制数注意,编号是从1开始的,所以取模取商之前要-1代码: 1 string convertToTitle(int n) { 2 string res; 3 4 while (n) { 5 res = (char)...
分类:其他好文   时间:2015-02-02 19:38:27    阅读次数:145
C#几个经常用到的字符串截取
一、1、取字符串的前i个字符(1)string str1=str.Substring(0,i);(2)string str1=str.Remove(i,str.Length-i);2、去掉字符串的前i个字符string str1=str.Remove(0,i);string str1=str.Sub...
分类:Windows程序   时间:2015-02-02 19:37:00    阅读次数:207
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!