上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 69 下一页
  2013年4月2日
摘要: JavaScript截取字符串方法详解1 substring() (1)用于提取字符串中介于两个指定下标之间的字符。语法:stringObject.substring(start,stop) start:必需。一个非负的整数,规定要提取的子串在第一个字符在 stringObject 中的位置。 stop;可选。一个非负的整数,比要提取的子串的最后一个字符在 stringObject 中的位置多 1。如果省 略该参数, 那么返回的子串会一直到字符串的结尾。(2)返回值一个新的字符串,该字符串值包含 stringObject 的一个子字符串,其内容是从 start 处到 stop-1 处的所有字. 阅读全文
posted @ 2013-04-02 13:33 @ 小浩 阅读(1020) 评论(0) 推荐(0) 编辑
  2013年3月3日
摘要: <html> <head> <title>Welcome</title> </head> <body> <center>Hello World</center> </body> </html> 阅读全文
posted @ 2013-03-03 09:30 @ 小浩 阅读(3844) 评论(0) 推荐(0) 编辑
  2013年2月21日
摘要: #include<iostream>#include<cstring>#include<math.h>#include<stdio.h>#include<algorithm>#define LEN sizeof(struct School)using namespace std;struct xm_item{int item; //项目编号char name[20]; //项目名称int count; //该项目得分人的数量}Xm_item[10];struct Student{char name[20]; //姓名int score 阅读全文
posted @ 2013-02-21 17:52 @ 小浩 阅读(692) 评论(0) 推荐(0) 编辑
  2013年2月15日
摘要: typedef 不能使用在静态数组的结构体当中!!!!否者会出现错误!! 阅读全文
posted @ 2013-02-15 13:28 @ 小浩 阅读(154) 评论(0) 推荐(0) 编辑
  2013年2月13日
摘要: 本题是静态数组管理系统,用到了静态数组的知识,废话不多说,看程序吧!哈!#include<iostream>#include<stdio.h>#include<string.h>#include<math.h>#include<algorithm>#define N 10using namespace std;struct Room{ int roomgrade;//房间等级 int roomprice;//房间价格 int roomnumber;//房间门号 char name[20];//旅客姓名 int sex;//旅客性别 0 阅读全文
posted @ 2013-02-13 15:31 @ 小浩 阅读(298) 评论(0) 推荐(0) 编辑
  2013年2月5日
摘要: 关于现行链表的简单应用!废话不多说!!#include<iostream>using namespace std;struct student{int num;struct student *next;};int main(){struct student *p,*q;q=p=(struct student *)malloc(sizeof(struct student));int m=3;while(m--){cin>>p->num;p->next=(struct student *)malloc(sizeof(struct student));if(m)p 阅读全文
posted @ 2013-02-05 16:08 @ 小浩 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 说实话,这个程序和教务处管理系统没有什么区别!!!!还是废话不多说!!!请看程序!!!#include<iostream>#include<stdio.h>#include<math.h>#include<string.h>#include<algorithm>using namespace std;#define LEN sizeof(struct student)struct student{ int num;//学号 char name[20];//姓名 double foxscore;//fox成绩 double cscore 阅读全文
posted @ 2013-02-05 14:51 @ 小浩 阅读(525) 评论(0) 推荐(0) 编辑
  2013年1月25日
摘要: 简单的数据结构应用,不多说,看程序!!!哈!!!希望对你能有帮助!!!#include<stdio.h>#include<iostream>#include<stdlib.h>#include<malloc.h>#include<algorithm>using namespace std;#define LEN sizeof(struct Worker)struct Worker{char name[20];//姓名!char department[20];//单位char sex;//性别!int age;//年龄!long tel 阅读全文
posted @ 2013-01-25 21:06 @ 小浩 阅读(1771) 评论(6) 推荐(0) 编辑
摘要: 数据结构中链式栈的简单应用例子:(亲供参考)#include<iostream>#include<math.h>#include<stdio.h>using namespace std;struct Student{int data;struct Student *next;};int main(){ struct Student *head,*p; head=p=(struct Student *)malloc(sizeof(struct Student)); p->next=NULL; int n; printf("请输入你要输入数据的个 阅读全文
posted @ 2013-01-25 13:29 @ 小浩 阅读(667) 评论(0) 推荐(0) 编辑
  2012年12月9日
摘要: 也没什么好说的!哈!#include<iostream>#include<cstring>using namespace std;int main(){ int Num[2][105];char num1[105];char num2[105];int answer[105];int i,j,k,m,c;int N;cin>>N;while(N--){ getchar(); memset(Num,0,sizeof(Num)); memset(num1,0,sizeof(num1)); memset(num2,0,sizeof(num2)); gets(num 阅读全文
posted @ 2012-12-09 21:16 @ 小浩 阅读(317) 评论(0) 推荐(0) 编辑
上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 69 下一页