- 博客(32)
- 收藏
- 关注
原创 ???
第一次做毕业设计,做了几个月,有了个样子,可没实际用途,没意思……;倒是学了点javascript 和 ExtJs,觉得数据库很重要,没学好……分析有点意思,设计有点意思,可都不好玩,不想搞了……想学linux,喜欢自由的东西,想学emacs,太强大了,什么时候能学好?不知道……ubuntu很好,很漂亮……喜欢ubuntu……webqq很好,天天用……同学去昆明旅游了,我已
2009-06-01 20:13:00
333
原创 ex63104.cpp
#include using namespace std; int main() { int g; int m; cout cin >> g; m = g % 10; if(g >= 0 && g { cout } if(g > 60 &&
2008-10-26 08:37:00
325
原创 ex64104.cpp
/******************************************************** TIME: 08/10/25 16:56 AUTHOR: ch8_daniel INPUT: yuan ------ less than one yuan,for example 0.25(yuan) OUTPUT: how many 2.5(jiao
2008-10-26 08:34:00
395
原创 ex65104.cpp
/****************************************************************** PURPOSE: Decide whether the you input is a leap year or not TIME: 08/10/25 18:05 AUTHOR: ch8_daniel INPUT: year --------
2008-10-26 08:32:00
386
原创 ex66104.cpp
/************************************************************************** PURPOSE: Compute salary TIME: 08/10/25 18:24 AUTHOR: ch8_daniel INPUT: hour --------- working hours per week
2008-10-26 08:29:00
280
原创 ex75122.cpp
/************************************************************************** PURPOSE: decide whether a number is a or not TIME: 08/10/25 AUTHOR: ch8_daniel INPUT: num an integer
2008-10-26 08:26:00
322
原创 ex81113.cpp
/************************************************************************** PURPOSE: 打印8*8棋盘,每个方块5个字符宽,3个字符高TIME: 08/10/25 21:17 AUTHOR: ch8_daniel INPUT: OUTPUT: VERSION: 1.0 **********
2008-10-26 08:20:00
393
原创 ex83135.cpp
/************************************************************************** PURPOSE: 求平均数 BEGIN-TIME: 08/10/25 FINISH-TIME: 08/10/25 AUTHOR: ch8_daniel INPUT: OUTPUT: VERSION: 1.0 ******
2008-10-26 08:18:00
273
原创 ex82135.cpp
/************************************************************************** PURPOSE: BEGIN-TIME: 08/10/25 06:32 FINISH-TIME: 08/10/25 06:55 AUTHOR: ch8_daniel INPUT: r ------ resistor OUT
2008-10-26 08:16:00
425
原创 ex76122.cpp
/************************************************************************** PURPOSE: calculate the counts of positive and negative numbers in an array TIME: 08/10/25 AUTHOR: ch8_daniel INPUT:
2008-10-26 08:13:00
278
原创 c++
最近在读<实用C++编程大全(Practical C++ Progranmming)>,PDF 格式 做了一些书后的练习,现贴出来,请大家指正(对输入没有检查)标题为如下格式:ex76122 -------- 122 页 例7.6程序用VC6.0中的cl.exe在dos下编译通过
2008-10-26 08:08:00
272
原创 i will be a post graduate!!!!!!!!!
i will be a post graduate!!!!!!!!!my tutor advise me to learn c++ , and i am learning it,i like it learn it and love it
2008-10-25 10:05:00
360
转载 C#
静态方法只能由类调用,不能由类的实例调用。C#要求变量在被引用前必须用一个初值进行初始化。当在方法的输入参数前面加上out关键字时,传递给该方法的变量可以不初始化。该变量通过引用传送。c#在重载方法时:1、两个方法不能仅在返回类型上有区别。2、两个方法不能仅根据参数是声明为ref还是out来区分。一般使用this关键字区分成员字段和同名的参数。构造函数
2008-04-12 19:49:00
369
转载 简单工厂模式的基本原理
简单工厂模式的基本原理:创建一个抽象工厂,它决定返回哪一个类的实例并将该实例返回。接下来可以调用那个类实例的方法,但不需要知道具体使用的是哪一个子类,这种方法把和数据相关的问题与类的其他方法分隔开来。它能返回具有同样方法的类的实例,它们可以是不同的派生子类的实例,也可以是实际上毫无关系仅仅是共享了相同接口的类。不管哪一种类实例中的方法必须是相同的,并且能够被交替使用。
2008-04-12 19:47:00
878
转载 何时使用工厂方法
何时使用工厂方法1、一个类无法预测它要创建的对象属于哪一个类。2、一个类用它的了类来指定所创建的对象。3、把要创建哪一个类的信息局部化的时候。实现工厂模式需要考虑的几个问题:1、基类是一个抽象类,模式必须返回一个完整可工作的类。2、基类包含默认方法,除非默认方法不能胜任,才会调用这些方法。3、可以将参数传递给工厂,告诉工厂返回哪一个类型的类。这种情况下,类可以共享
2008-04-12 19:46:00
438
转载 csFile.cs
// //将文件方法包装在一个带有易用方法的简单类中 // public class csFile { private string fileName; StreamReader ts; StreamWriter ws; private bool opened, write
2008-04-04 08:02:00
429
原创 C#窗口管理
//初始化子窗体 Form childb=new Basic(),childg=new Grade(),childbg=new Both(); //判断子窗体是否已打开 private void openChild(Form pform) { try {
2008-04-01 08:40:00
508
原创 C#窗口管理
//初始化子窗体 Form childb=new Basic(),childg=new Grade(),childbg=new Both(); //判断子窗体是否已打开 private void openChild(Form pform) { try {
2008-04-01 08:26:00
533
转载 c#修饰符
c#中有13种修饰符,按功能可分为三部分:存取修饰符,类修饰符和成员修饰符.存取修饰符:public:存取不受限制.private:只有包含该成员的类可以存取.internal:只有当前工程可以存取.protected:只有包含该成员的类以及继承的类可以存取. 类修饰符:abstract:可以被指示一个类只能作为其它类的基类.
2008-03-29 10:18:00
361
转载 渐变的窗口背景(C#2005)
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Drawing.Draw
2008-03-22 10:37:00
631
转载 Properties(C#)
using System;using System.Collections.Generic;using System.Text;namespace Properties{ public class PropertyHolder { private int someProperty = 0; public int So
2008-03-22 10:34:00
550
转载 域(C#)
using System;using System.Collections.Generic;using System.Text;//此例演示了静态域和非静态域的区别namespace Field{ public class Count { //静态域,为所有类的实例所共享。类每进行一次实例化,它的值就加1,这个操作在构造函数中实现。
2008-03-22 10:16:00
424
转载 用获取路径的方法得到圆形窗体(C#2005)
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Runtime.InteropServices;using System.Wi
2008-03-22 10:14:00
573
2
转载 多边形窗体(C#)
using System.Drawing;using System;using System.Collections;using System.Windows.Forms;using System.ComponentModel;using System.Data;using System.Runtime.InteropServices;namespace Ex
2008-03-22 10:10:00
808
1
转载 C#属性
using System;using System.Collections.Generic;using System.Text;namespace Properties{ public class PropertyHolder { private int someProperty = 0; public int So
2008-03-18 08:15:00
503
转载 实现字符串反转的四种方法(C#)
//实现字符串反转的四种方法:使用委托传递四个方法。 //public delegate void StrReMethod(string original); //class StringReverse //{ // static void Reverse1(string original) // { //
2008-03-16 11:04:00
1289
转载 抽象类
举个例子:去书店买书。这句话描述的就是一个抽象行为。到底是去哪家书店,买什么书。“去书店买书”这句话中,并没有包含一个买书行为必须的确定信息。如果将去书店买书这个行为封闭为一个行为类,那么这个类就应该是一个抽象类。C#中规定,类中只要有一个方法被声明为抽象方法,这个类也必须声明为抽象类。
2008-03-16 10:56:00
343
原创 输入一个整数,判断其是否为素数
//输入一个整数,判断其是否为素数 //class suShu //{ // static void sushu(int n) // { // int i,k=(int)Math.Sqrt(n); // for (i = 2; i < k+1; i++) // {
2008-03-16 10:44:00
3723
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人