函数使用示例
-----------------length函数使用示例---------------------
字符串"**********"的长度为:${fn:length(str) }
-----------------字符串大小写转换示例-------------------
字符串"abcdefghijklABCDEFGHIJKL"转换为小写:${fn:toLo...
分类:
Web程序 时间:
2014-07-29 18:00:42
阅读次数:
205
一、大小写转换 1、strtolower()--转换为小写。 echo strtolower("Hello WORLD!"); //hello world! 2、strtoupper()--转换为大写。 echo strtoupper("Hello WORLD!"); //HELLO W...
分类:
Web程序 时间:
2014-07-19 20:13:39
阅读次数:
263
无标题文档 转为大写//onblur="lw.value = chineseNumber(up.value)"说明鼠标移开焦点出发事件转为小写
分类:
其他好文 时间:
2014-07-18 14:33:52
阅读次数:
316
http://www.cnblogs.com/huangcong/archive/2011/08/29/2158268.html去空格及特殊符号s.strip().lstrip().rstrip(',')复制字符串#strcpy(sStr1,sStr2)sStr1 = 'strcpy'sStr2 =...
分类:
编程语言 时间:
2014-07-18 09:37:40
阅读次数:
236
week_2_day1_7.7 周一//用字符数组 来实现 字母大小写转换#includevoid desc( char *a ,int n){ char *i = a; int x = 0 ; for ( x = 0; x = 97 ) *i-=32; i++; }}int main(void){...
分类:
移动开发 时间:
2014-07-13 23:42:26
阅读次数:
371
1 #include 2 using namespace std; 3 int main(){ 4 char a[50]; 5 int i,j; 6 cin.getline(a,50); 7 for(i=0;a[i]!='#';++i) 8 if(a...
分类:
其他好文 时间:
2014-07-05 19:02:25
阅读次数:
184
输入一个以#结束的字符串,本题要求将小写字母全部转换成大写字母,把大写字母全部转换成小写字母,其它字符不变。
输入格式:
输入在一行中给出一个长度不超过40的、以#结束的非空字符串。
输出格式:
在一行中按照要求输出转换后的字符串。
输入样例:
Hello World! 123#
输出样例:
hELLO wORLD! 123
import java.ut...
分类:
其他好文 时间:
2014-06-30 20:29:55
阅读次数:
238
去空格及特殊符号 s.strip().lstrip().rstrip(',')复制字符串#strcpy(sStr1,sStr2) sStr1 = 'strcpy' sStr2 = sStr1 sStr1 = 'strcpy2' print sStr2连接字符串#strcat(sStr1,sStr2)...
分类:
编程语言 时间:
2014-06-15 23:51:33
阅读次数:
341
function a(){ document.getElementById("test").value
= document.getElementById("test").value.toUpperCase();}function b(){
document.getElementById("test...
分类:
Web程序 时间:
2014-05-26 08:16:22
阅读次数:
265
问题描述:
试编写一个程序,将输入的大写字母转换为小写字母,输入的小写字母转换为大写字母,要求用位运算完成转换过程算法分析:
我们都知道大写字母A~Z的编码是65~90,小写字母的编码a~z是97~112;而大写A(65)的二进制编码为100
0001,小写字母a(97)的二进制编码为110 0.....
分类:
其他好文 时间:
2014-05-19 19:32:55
阅读次数:
264