摘要: 普通的算法: classProgram{//首先碰到的是这样的一首题目:计算数组{1,1,2,3,5,8.......}第30位值,不用递归,我写出了以下这样的代码staticvoidMain(string[]args){//分析/*第一位不管它,因为第一位是没得加的*第二位是第一位+0*第三位是第二位+第一位*所以我一般的想法是:**/intreturnInt=0;intlastlast=1;intlastInt=1;for(inti=1;i<=30;i++){if(i==1 || i==2){returnInt=1;lastlast=1;lastInt=1;}else{returnI 阅读全文
posted @ 2011-05-11 18:04 小小部落 阅读(210) 评论(0) 推荐(0) 编辑
摘要: server publicstaticvoidStart(){Hashtableht=newHashtable();ht["port"]="8899";ht["name"]="Server";ht["authorizedGroup"]="Everyone";GameService.Messge("注册TCP");try{TcpChannelchannel=newTcpChannel(ht,null,null);ChannelServices.Registe 阅读全文
posted @ 2011-05-10 16:24 小小部落 阅读(225) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace test{ public delegate void EventHandler(int i); interface IMethod { void Add(); } class C : IMethod { public void Add() { Console.WriteLine("implements Imethod"); } void aaa() { } } class A { public 阅读全文
posted @ 2011-05-10 16:20 小小部落 阅读(396) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace test{ //猫叫,老鼠逃跑,主人惊醒 class Program { static void Main(string[] args) { Cat c = new Cat("加菲猫"); Mouse m = new Mouse("米老鼠"); Person p = new Person("汤姆"); c.MyEvent += new NumberCha 阅读全文
posted @ 2011-05-10 14:36 小小部落 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 代码:1.bottomshow.xml页面最下角样式:View Code 1<?xmlversion="1.0"encoding="utf-8"?>2<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"3android:layout_marginBottom="0px"4android:layout_width="fill_parent"56android:layout_height= 阅读全文
posted @ 2011-04-07 13:52 小小部落 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 先放效果图~~点击开始截图按钮,然后从上到下有文字和图片的区域,鼠标按下开始截图,鼠标松开停止截图然后图片保存到C盘的screen1.jpg图片放源码前台[代码]后台CS[代码]截图结果 阅读全文
posted @ 2010-12-10 15:03 小小部落 阅读(556) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.... 阅读全文
posted @ 2010-05-05 18:16 小小部落 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 想要的效果,想要在点击地图的同时,显示点击了多少次,根据点击的地点显示图片代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Strict//EN""http://ww... 阅读全文
posted @ 2010-05-05 18:14 小小部落 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 功能需求:在winform中,每隔几秒就像服务器(局域网内)查看时候连接,如果没连接,则提示用户掉线。按钮功能enable=false如果掉线后再上线了,则提示上线有几个需要操作数据库的窗体,我统一建立一个父窗体,代码如下CheckCon.cs代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.... 阅读全文
posted @ 2010-04-15 10:46 小小部落 阅读(671) 评论(0) 推荐(0) 编辑
摘要: 阅读本文章之前的准备  阅读本文章前,需要读者对以下知识有所了解。否则,阅读过程中会在相应的内容上遇到不同程度的问题。  懂得ASP/ASP.NET编程   了解ASP/ASP.NET的Session模型   了解ASP.NET Web应用程序模型   了解ASP.NET Web应用程序配置文件Web.config的作用、意义及使用方法   了解Internet Information Servi... 阅读全文
posted @ 2010-01-04 09:42 小小部落 阅读(217) 评论(0) 推荐(0) 编辑