码迷,mamicode.com
首页 >  
搜索关键字:str    ( 67828个结果
Ruby 仿 C 结构体:CStruct 的一些例子
1. [代码]最简单的例子 # CStruct Examplesrequire 'cstruct'# example:# struct Point in C\C++ (32-bit platform):## struct Point# {# int x;# int y;# };# str...
分类:其他好文   时间:2014-09-05 15:50:51    阅读次数:260
从网络获取图片JSON链接本地轮流播放
privateList<Map<String,String>>mlist;privateFinalBitmapfb;初始化,准备请求服务器publicvoidinitttq(){ mlist=newArrayList<Map<String,String>>(); StringBufferurlSb=newStringBuffer(); urlSb.append(getResources().getString(R.string.str_bc..
分类:Web程序   时间:2014-09-05 14:34:02    阅读次数:274
C语言中strtok使用方法与原理,以及自实现函数功能
#include<stdio.h>//该程序的关键点在于定义了一个静态的字符指针,该指针用来记录分割后的字符串的首地址//传入NULL,则表示继续处理静态指针指向的余下字符串char*strtok(char*str,constchar*delim){staticchar*rembmberLastString=NULL;//记下上一次非分隔字符串字符的..
分类:编程语言   时间:2014-09-05 14:33:02    阅读次数:300
在C\C++中调用Lua
1.C\C++程序中调用Lua函数方法一:#include "stdafx.h"#include #include #include #include "lua.hpp"const char* lua_function_code = "function dealStr(str) \ ...
分类:编程语言   时间:2014-09-05 14:10:11    阅读次数:343
简单的debugfs模型
#include #include #include #include #include #include static char abc_str[32] = { }; static char blob_inof[32] = "dragon blob wrapper\n"; static struct debugfs_blob_wrapper blob; s...
分类:其他好文   时间:2014-09-05 11:26:51    阅读次数:182
根据子级ID获取其所有父级
当前位置>新闻中心>行业资讯CLASSIDCLASSNAMECLASSPID1新闻中心02行业资讯13公司新闻14媒体聚焦0当前位置 public string navName = ""; protected void getNav(string str) ...
分类:其他好文   时间:2014-09-05 09:55:11    阅读次数:214
Python_高级特性
Python高级特性 author:lxy 切片、迭代、列表生成式、生成器 切片 Python中 代码越少越简单越好, 我们要取一个list中的某一部分的元素的我们可以使用判断+循环实现,在Python提供了专门的方法--切片 slice切片,用来获取list中某一段元素 tuple、str等都看做是一种list只是使用切片获取的片段还是他们原来相应的类型...
分类:编程语言   时间:2014-09-05 01:04:00    阅读次数:319
JavaScript学习笔记(三)
//==RegExp===//1.正则表达式的test()方法var result;var str = "bcatasdsrtophe" ;var re11 = /cat/g; //匹配catresult = re11.test(str);var re12 = new RegExp("Cat","g...
分类:编程语言   时间:2014-09-04 23:34:20    阅读次数:253
Java 判断是否为汉字 判断是否为乱码 判断字符串是否为双整型数字 整数 数字
/** * 判断是否为汉字 * * @param str * @return */public static boolean isGBK(String str) {char[] chars = str.toCharArray();boolean isGBK = false;for (int i = ...
分类:编程语言   时间:2014-09-04 23:32:30    阅读次数:298
php 下载txt文件
访问PHP的时候生成TXT并自动下载。第一步:处理中文文件名:Php代码$ua=$_SERVER["HTTP_USER_AGENT"];$filename="中文文件名.txt";$encoded_filename=urlencode($filename);$encoded_filename=str...
分类:Web程序   时间:2014-09-04 20:39:20    阅读次数:197
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!