码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果
MFC-将CString转换成std::string
//将CString转换成const char * int stringLength = ::WideCharToMultiByte(CP_UTF8, NULL, video_path, wcslen(video_path), NULL, 0, NULL, NULL); char* buffer.....
分类:编程语言   时间:2015-04-02 18:27:45    阅读次数:210
数组和
package shuzu;import java.util.Random;import java.util.Scanner;public class bb { public static void main(String[] args) { // TODO Auto-generated meth....
分类:编程语言   时间:2015-04-02 18:17:47    阅读次数:147
后台程序控制js弹出框
public void jsWindow(String msg, int i){ HttpServletResponse response=ServletActionContext.getResponse(); try { response.setContentType("text/html...
分类:Web程序   时间:2015-04-02 18:10:52    阅读次数:138
取EXCEL文件的3种方法
1.方法一:采用OleDB读取EXCEL文件: 把EXCEL文件当做一个数据源来进行数据的读取操作,实例如下: public DataSet ExcelToDS(string Path){string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" +"D...
分类:其他好文   时间:2015-04-02 18:07:45    阅读次数:157
xml特性重载
public class Group { public string GroupName; [XmlIgnore] public string Comments; }在序列化时,其结果如下所示 .Net我们可以看到,因为设置了XmlIgnore,所以Comments没有被序列化。对于已经设置了Xml...
分类:其他好文   时间:2015-04-02 18:07:23    阅读次数:113
关于帝国cms 列表页SEO优化的问题
一般列表页面中,我们都需要带分页信息区分当前页号,为区分第一页,和第一页后的其他所有分页页面.我们推荐的做法为:第一页显示正常的标题,从第二页开始便显示xxxxx-第2页-xxxx网.做法是.修改帝国cms的源码!修改e/class/functions.php 找到 $string=str_rep....
分类:其他好文   时间:2015-04-02 18:01:22    阅读次数:110
codeforces 190A Vasya and the Bus
import?java.io.BufferedReader; import?java.io.IOException; import?java.io.InputStreamReader; public?class?CF190A?{ public?static?void?main(String[]?args)?throws?IOException?{ Buf...
分类:其他好文   时间:2015-04-02 16:53:19    阅读次数:104
android获取文件getMimeType的两种方法
方法1: import java.util.Locale; private static String getSuffix(File file) { if (file == null || !file.exists() || file.isDirectory()) { return null; } ...
分类:移动开发   时间:2015-04-02 16:32:29    阅读次数:251
string的操作
常用函数测试: #! -*- coding:utf-8 -*- import string s = 'Yes! This is a string' print '原字符串:' + s print '小写:' + s.lower() print '大写:' + s.upper() print '大小写转换:' + s.swapcase() print '首字母大写:' + s.capitalize...
分类:其他好文   时间:2015-04-02 16:28:39    阅读次数:239
python输出不换行(同一行输出不同类型数据)
不同类型的数据输出在同一行,在行尾加","即可: #! -*- coding:utf-8 -*- #加这一行可以在文件中使用中文 print 'This is a string + int', print '12 + 13 =', print 12+13 #另一种方式,在命令行中输出时不换行,还会替换掉原来的一行 for i in xrange(1,1000): print 'Downloa...
分类:编程语言   时间:2015-04-02 16:25:25    阅读次数:248
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!