- 博客(9)
- 收藏
- 关注
原创 urlrewrite与struts2结合使用配置
本文侧重在urlrewrite与struts2的结合配置时需要注意的地方,重点不在urlrewrite规则的具体配置。如果对urlrewrite的配置想进行更深入的了解解,请查看下面链接Java-UrlRewrite中文官方文档下面直接进入配置说明:1、web.xml在配置过滤器的时候,注意配置顺序,Struts2的过滤器要配置在UrlRewriteFilter过滤
2013-06-07 10:47:27 1737 1
原创 约瑟夫生死实验----C语言实现
<br />#include <stdio.h>#include <stdlib.h>typedef struct node { int num,code; struct node *next; }lnode; int main(void) { printf("我的设计:约瑟夫生死实验"); printf("/n/n------------------------------------WELCOME--------------------------
2010-12-11 23:59:00 1072
原创 文章编辑----C语言实现
<br />#include <stdio.h>#include <string.h>#include <stdlib.h>#define N 3char str[N][80];int i,j;int len[N];int dnum=0,cnum=0,snum=0,anum=0,strnum=0;void menu();int input();void output();void count();void checkstring();void
2010-12-11 23:56:00 2064 1
原创 考试成绩的统计管理----C语言实现
#include #include #define N 100typedef struct { int n; int c1; int c2; int c3; int ac; int vc; int cn;}STU;int sn=1;STU stu[N];STU sortstuc[N];void menu(); void InputStu(int i);void ShowStuAve();void OutputAl
2010-12-11 23:51:00 628
原创 计算加权平均成绩----C++实现
<br />#include <iostream>using namespace std;#define N 30class Subject{public: Subject(float x, float y) { fScore=x; fCredit=y; fWeighted=fScore*fCredit; } Subject() { fScore=fCredit=fWeighted=0.0; } ~Subject() {}
2010-08-04 21:17:00 3533
原创 八皇后问题求解----C++实现
<br />#include <iostream>#define NUM 8using namespace std;typedef struct Empress{ int x; int y; int flag; bool IfEmp;}EMP;void InitChessboard(EMP Chessboard[9][9]);void InitEmpress(EMP Empress[]);void ReconsChessboard(EMP
2010-08-04 21:16:00 484 1
原创 单链表操作演示----C语言实现
<br />/*单链表操作程序可进行单链表的建立、输入、输出、插入、删除、查找、替换操作。程序以int型为例,若需使用其他类型数据只需修改数据定义输入输出即可。#include "Stdio.h"#include "Conio.h"#include "stdlib.h"#define TURE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#
2010-08-04 20:54:00 480
原创 贪吃蛇----C语言实现
#include #include #include #include #include #define MaxNode 300 int i,key,score=0; int gamespeed=20000;int foodx;int foody;int needfood;int snakex[MaxNode]; int snakey[MaxNode]; int snakelong;int snaketo;int snakelife;
2010-08-04 20:48:00 427
原创 简单五子棋----C语言实现
/*By Rlax*//*光标键控制方向,空格键落子*/#include "Stdio.h"#include "Conio.h"#include "graphics.h"#define LEFT 0x4b00 #define RIGHT 0x4d00 #define DOWN 0x5000 #define UP 0x4800 #define ESC 0x011b#define BLANKSPACE 0x3920#define N 400int one_
2010-08-04 20:45:00 872
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人