摘要: 本文以php版本为例:文件下载:http://ueditor.baidu.com/website/download.html还可以自己先定义内容,然后下载,这样可以帮助我们精简不少东西。以本地php环境为例,现在www目录下建立一个app目录作为测试目录,然后将下载的ueditor文件夹解压到app... 阅读全文
posted @ 2013-07-22 21:35 千手宇智波 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 做过Web开发的朋友相信都使用过富文本编辑器,比较出名的CuteEditor和CKEditor很多人应该已经使用过,在功能强大的同时需要加载的东西也变得很多。下面要推荐的两款富文本编辑器都是使用JS编写,使用简单,非常轻量级。NicEditorNicEdit是一个轻量级,跨平台的Inline Con... 阅读全文
posted @ 2013-07-22 14:12 千手宇智波 阅读(756) 评论(0) 推荐(0) 编辑
摘要: 1.标签的结构示例代码: 信息统计表 # 1 2 3 4 一个完整的例子: 信息统计表 # Firstname... 阅读全文
posted @ 2013-07-21 12:29 千手宇智波 阅读(430) 评论(0) 推荐(0) 编辑
摘要: .用string方法定义字符串变量实现代码:#include#includeusing namespace std;int main(){ string a,b,c,t; cout>a; cout>b; cout>c; if(a>b){ t=a; a=b; b=t; } if(a>c){ t... 阅读全文
posted @ 2013-07-20 23:39 千手宇智波 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 1.用字符数组和自己书写的函数实现自己写一个具有strcat函数功能的函数实现代码如下:#includeusing namespace std;int main(){ char a[100],b[50]; void Strcat(char a[],char b[]); cout>a; cout>b;... 阅读全文
posted @ 2013-07-20 23:09 千手宇智波 阅读(14453) 评论(0) 推荐(0) 编辑
摘要: Foreach 函数(PHP4/PHP5)foreach 语法结构提供了遍历数组的简单方式。foreach 仅能够应用于数组和对象,如果尝试应用于其他数据类型的变量,或者未初始化的变量将发出错误信息。基本用法有两种语法:foreach (array_expression as $value) ... 阅读全文
posted @ 2013-07-18 00:00 千手宇智波 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 1.将一个字符串转化为数组str_split()用于将一个字符串转化为数组语法:str_split(string,length)//string是必须的,是要分割的字符串;//length是可选的,规定每个数组元素的长度tips:如果 length 小于 1,str_split() 函数将返回 fa... 阅读全文
posted @ 2013-07-17 23:45 千手宇智波 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 第一步:输入15个整数第二步:对这15个数进行排序第三部:输入一个数,在后在排好序的数中进行折半查找,判断该数的位置实现代码如下:方法一:选择排序法+循环折半查找法#includeusing namespace std;int main(){ int a[15]; int n,i; void arr... 阅读全文
posted @ 2013-07-15 23:36 千手宇智波 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 1.矩阵相加两个同型矩阵做加法,就是对应的元素相加。#includeusing namespace std;int main(){ int a[3][3]={{1,2,3},{6,5,4},{4,3,2}}; int b[3][3]={{4,3,2},{6,5,4},{1,2,3}}; int c[... 阅读全文
posted @ 2013-07-13 16:36 千手宇智波 阅读(1028) 评论(0) 推荐(0) 编辑
摘要: 1.输出上三角形第一行1个星,第二行3个星,第三行5个星,第四行7个星,第五行9个星。分析:三角形的形状由输出的空白和星组成,通过分析每一行输出几个空格,几个星,就可完成输出三角形的工作。#includeusing namespace std;int main(){ int i=0,j=0; for... 阅读全文
posted @ 2013-07-13 08:40 千手宇智波 阅读(759) 评论(0) 推荐(0) 编辑