- 博客(29)
- 资源 (1)
- 收藏
- 关注
原创 C#动态图片
namespace WindowsFormsApplication6{ partial class Form1 { /// /// 必需的设计器变量。 /// private System.ComponentModel.IContainer components = null; ///
2014-10-30 20:44:08 1092
原创 C#计算器(组合框控件)
namespace WindowsFormsApplication5{ partial class Form1 { /// /// 必需的设计器变量。 /// private System.ComponentModel.IContainer components = null; ///
2014-10-30 19:48:17 1694
原创 C#电子时钟(Timper控件)
namespace WindowsFormsApplication3{ partial class Form1 { /// /// 必需的设计器变量。 /// private System.ComponentModel.IContainer components = null; ///
2014-10-30 18:52:21 2259
原创 C#控件列表框
namespace WindowsFormsApplication2{ partial class Form1 { /// /// 必需的设计器变量。 /// private System.ComponentModel.IContainer components = null; ///
2014-10-30 18:00:04 1154
原创 C#窗体应用(复选框,单选按钮,拖动水平滚动条)
namespace WindowsFormsApplication1{ partial class Form1 { /// /// 必需的设计器变量。 /// private System.ComponentModel.IContainer components = null; ///
2014-10-30 16:52:59 3572
原创 C++稀疏矩阵的压缩
#include using namespace std;const int MaxSize=20;struct TupNode{ int r;//行号 int c;//列号 int d;//元素定义};//三元组定义struct TSMatrix{ int rows;//行数 int cols;//列数 int nums;//非零元素
2014-10-29 22:58:17 805
原创 C#文字的复制,剪切,撤销
namespace WindowsFormsApplication1{ partial class Form1 { /// /// 必需的设计器变量。 /// private System.ComponentModel.IContainer components = null; ///
2014-10-28 22:47:05 2631
原创 C#按钮应用
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.W
2014-10-25 12:39:37 599
原创 C#文本框实例2
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.W
2014-10-25 11:53:24 1327
原创 C#我文本框实验
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.W
2014-10-24 21:49:29 593
原创 C#窗体应用1
设计一个窗体:该窗体自动位于屏幕中央;大小不可调;最小化、最大化按钮不可用;窗体标题为“烟台大学”。在该窗体上,放置一个按钮、一个标签。单击按钮时,在标签上显示当前系统时间。
2014-10-23 15:27:01 524
原创 Java 抽象类
Bankabstract class Bank { protected double savedMoney; //存款 protected int year ; //存款年数(注意类型) protected double income; //存款利息 protected double inRate ; protected double current;//存款利率
2014-10-22 19:54:24 500
原创 C#自定义异常类
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication1{ class MyException:ApplicationException
2014-10-22 19:14:36 1040
原创 Java Arraylist应用
import java.util.ArrayList;public class Qeue { public static void main(String[] args) { ArrayList list =new ArrayList(); list.add('A'); list.add('B'); list.add('C'); list.add('D')
2014-10-22 19:03:26 463
原创 C++输出可能栈
#include #include using namespace std;int n;char ch[20];char Stack[100];char Queue[100];void fun(int ,int ,int );int main(){ int i=0; cout<<"请输入进栈的字符串:(最多不超过20个)\n"; while(((ch[i]
2014-10-21 13:42:47 583
原创 JAVA模拟银行
Bankimport java.util.*;public class BankText { public static void main(String[] args) { Scanner in=new Scanner(System.in); System.out.print("请输入存款年数:"); double year=in.nextDouble(); Syst
2014-10-18 16:54:18 967
原创 C#泛型类Queue
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication9{ class Program { static void Main(string[] args)
2014-10-16 17:59:28 886
原创 C#泛型类Stack
使用泛型类Stack,实现字符串或数字的反序。提示:泛型类Stack可以自己定义,也可以引入命名空间System.Collections,使用.NET提供的泛型类Stack< >
2014-10-16 15:07:09 623
原创 C++模式匹配
#include using namespace std;struct SqString{ char data[20]; int length;};void GetNext(SqString t,int next[]){ next[0]=-1; int j=0,k=-1; while(j<t.length-1) {
2014-10-16 09:29:30 2580
原创 JAVA电子门管理系统
package com.handson.sys;public class Door { final String OPEN="门已开启"; final String CLASE="门已关闭"; private String state; private boolean bellState; public void open(){ this.
2014-10-15 19:39:40 929
原创 C++递归求平均数
#include using namespace std;double A[]= {32,25,54,85,54};double average(int n){ if(n==0) { return 0; } else { return A[n-1]/5+average(n-1); }}
2014-10-14 09:19:06 2644
原创 C++链式队列
#include using namespace std;struct SqQueue{ char data; SqQueue *next,*front,*rear;};bool SqQueueEmpty(SqQueue q){ return (q.rear==NULL);}void enQueue(SqQueue& q,char e)
2014-10-14 08:22:32 532
原创 C++顺序队列
#include using namespace std;struct SqQueue{ char data[20]; int front,rear;};bool SqQueueEmpty(SqQueue q){ return (q.front==q.rear);}bool enQueue(SqQueue& q,char e){
2014-10-14 08:11:10 418
原创 C++循环顺序队列
#include using namespace std;struct SqQueue{ char data[20]; int front,rear;};bool SqQueueEmpty(SqQueue q){ return (q.front==q.rear);}bool enQueue(SqQueue& q,char e){
2014-10-14 08:09:58 422
原创 C#类数组
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class hashtable { string name; string schoolnumber;
2014-10-11 11:48:26 1550
原创 C#枚举类型
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ enum Number { one=1,two,three } class Program { sta
2014-10-10 20:48:14 390
原创 C#接口
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ interface Iflyable { double sum(double a, double b); } c
2014-10-10 13:05:26 466
原创 C++顺序栈
#include using namespace std;struct SqStack{ char data[20]; int top;};void InitStack(SqStack &s){ for(int i=0; i<20; ++i) { s.data[i]=' '; } s.top=-1;}bool St
2014-10-03 15:53:38 588
原创 C++链栈
#include using namespace std;struct SqStack{ char data; SqStack* next;};bool StackEmpty(SqStack* s){ return(s->next==NULL);}void Push(SqStack*& s,char& e){ SqStack *p=new SqS
2014-10-03 15:52:59 501
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人