贪心算法-装载问题

#include<conio.h>#include<string>using namespace std;typedef struct goods /*物品结构信息*/{ int goodsNo; /*物品编号*/ struct goods *link; /*另一个物品的指针*/}GOODS;typedef struct box /*箱子结构信息*/{ int remain_space; /*箱子的剩余空间*/ GOODS * head; /*箱内物品链表的头指针*/ struct box *next; /*箱子链表的后继箱子指针*/}B...
2011-12-17 22:18 | 阅读 988 次 | 评论 0 条

java

import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JTextField;class Stack_Float { float nums[]; int top; Stack_Float() { nums = new float[50]; top = -1; } boolean IsEmpty() { if (top == -1) return t...
2010-12-28 21:11 | 阅读 688 次 | 评论 0 条

java

//import java.awt.Button;import java.awt.Color;import java.awt.Rectangle;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.event.FocusEvent;import java.awt.event.FocusListener;import java.awt.event.KeyEvent;import java.awt.event.KeyListener;import java.awt.eve...
2010-12-28 21:09 | 阅读 793 次 | 评论 0 条

2010年12月英语四级听力场景常见词汇

2010年12月英语四级听力学校场景常见词 课程分类 Optional course 选修课 2010年12月英语四级听力交通运输常见词汇 fare 车票 licence 驾照 rush hours 高峰时间 traffic jam 交通堵塞 overtake 超车 one way street 单行道 over speed 超速 police officer 交警 ticket 罚单 fine 罚金 fast way /express way/ high way 高速公路 motor way...
2010-10-18 22:54 | 阅读 1063 次 | 评论 0 条

英语四级作文:青春寄语

Youth Youth is not a time of life; it is a state of mind; it is not a matter of pink cheeks, red lips and flexible knees; it is a matter of will, a quality of imagination, a vigor of the emotion;it is the freshness of the deep springs of life. Youth means a dispositional control ...
2010-10-18 22:44 | 阅读 896 次 | 评论 3 条

英语四级作文:我的爱好

My Favorite Hobby 1.我有许多爱好,其中我最喜欢读书。 2.我喜欢读书有三个原因。 3.读书已经成为我生活的一部分。 I have many hobbies, such as reading, skating, and watching TV. But reading is my favorite hobby. I like reading for three reasons. First of all, books introduce me to a new world, which is colourful and withou...
2010-10-18 22:42 | 阅读 945 次 | 评论 0 条

从跌倒的地方站起来《英文版》演讲稿

Let’s stand up from where we fall down All the celebrations welcoming the new century were hold in the year 2007, because life without a greeting is like the sky without the sun.Greetings are very important for the whole world,in my opinion. But I don't know whether greetings are enough fo...
2010-10-18 22:40 | 阅读 798 次 | 评论 0 条

2010年12月六级经典句型分析与背诵

长难句练习: 1.They were fined a total of just over &pound;116 million as part of a leniency deal offered by the watchdog to companies that owned up quickly to anti-competitive behaviour. 2.The National Consumer Council gave warning that the admissions would dent consumer confidence in leading hi...
2010-10-18 22:36 | 阅读 684 次 | 评论 0 条

英语四级训练808题

窗体顶端 窗体底端 模拟试卷 考试时间:120分钟 满分:710 分 2010英语四级新试题804 目 窗体顶端 Part I Writing 作文题 Directions: For this part, you are allowed 30 minutes to write a short essa...
2010-10-18 22:29 | 阅读 1209 次 | 评论 1 条

大学英语四级真题《College English Mode》

l Test Two —Band Four— Part ⅠWriting(30 minutes) Directions: For this part, you are allowed thirty minutes to write a composition on the topic: Colleges Have Opened Their Doors Wider. You should write at least 120 words, and base your composition on the outline given in Chinese below: 1. ...
2010-10-18 22:21 | 阅读 787 次 | 评论 0 条

用html写的自动跳转程序

<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>正在进入</title></head><body><form name=loading>  <p align=center> <font color="#0066ff" size="2">正在进入,请稍等</font><font color="#0066ff" size="2" face="Arial">...</font>  <input type=text name=chart size=46 style="...
2010-06-23 17:53 | 阅读 722 次 | 评论 0 条

一个简单的登陆程序《htnl》

<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>新用户注册</title><style>body,td{font-size:12px}.bk {color: #f78d00; border:1px #f78d00 solid;}.Tips_bo {FONT-FAMILY: "Arial", "宋体";BORDER: 0px #f78d00 solid; FONT-SIZE: 12px; COLOR: #f78d00; text-decoration: non...
2010-06-23 17:44 | 阅读 788 次 | 评论 0 条

html搬的个人简历

<html> <head> <title>个人简历表</title> </head> <body> <table border="1" cellpadding="3" cellspacing="3" align="center" bgcolor="#548751"> <tr align="center" > <td align="center" colspan="5"> <font size="+3"><b>个人基本简历</b></font...
2010-06-23 16:28 | 阅读 855 次 | 评论 0 条

超级网站大全(看了包你终身受用)!!没事多去看看

论 文 在线网[http://www.lwzx.net(论文下载,大量免费资源) 论 文 帝国[http://www.papersempire.com(论文资源) 论 文 资料网[http://www.51paper.net(各专业论文下载) 论 文 快车网[http://www.lun-wen.com(各专业论文下载) 毕 业 论文网[http://www.bylw.com(论文发表等,不错的地方) 专 业 论文网[http://www.dtzcb.net/lunwen(专业论文下载,职称考试) 大学生论文库[http://www.syiae.com/lunwen(看看吧挺好) 轻...
2010-06-22 11:38 | 阅读 1036 次 | 评论 2 条

一次多项式的相加《c语言》

#include<stdio.h>#include<malloc.h>#include<stdlib.h>#define LEN sizeof(node) typedef struct polynode /*用单链表存储多项式的结点结构*/{ int coef; /*多项式的系数*/ int exp; /*指数*/ struct polynode *next; /*next是struct polynode类型中的一个成员,它又指向 struct polynode类型的数据,以此建立链表*/}n...
2010-06-22 11:26 | 阅读 1035 次 | 评论 0 条

教职工工资管理系统

#include <iomanip>#include <iostream>#include <fstream>#include <malloc.h>#include <stdlib.h>#include <string.h>#define NULL 0int const N=20;#define LEN sizeof(struct student)using namespace std; void Menu(); void Pass();int n=0; //定义一个全局变量统计职工人数 //——--------->定义一个职工信息的结构体struct stude...
2010-06-22 11:08 | 阅读 1070 次 | 评论 16 条

俄罗斯方块的源代码

/*俄罗斯方块源代码*/#include <graphics.h> #include <stdio.h> #include <dos.h> #include <conio.h> #include <time.h> #include <math.h> #include <stdlib.h> void draw_block(int x,int y,int style,int way); void kill_line(int y); void draw_little_block(int x,int y,int z,int style); int check_block(int x,int ...
2010-06-22 10:45 | 阅读 822 次 | 评论 3 条

一个简单的html制作的计算器

<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>网页特效|网页特效代码(JsHtml.cn)---普通计算器代码</title></head><body><script language="JavaScript"><!-- Hide the script from old browsers --function compute(obj) {obj.expr.value = eval(obj.expr.value)}var one = '1'var two...
2010-06-22 10:39 | 阅读 1659 次 | 评论 0 条

立体竖直排列菜单

<html><head><title>立体竖直排列菜单</title><style type="text/css">a{font-family:Arial, Helvetica, sans-serif;font-size:24px;}#menu{width:100px;height:auto;text-align:left;}#menu a:link,#menu a:visited{color:#fff;text-decoration:none;text-align:center;width:100px;padding:4px;margin:4px auto;backgroun...
2010-06-22 10:35 | 阅读 703 次 | 评论 0 条

我的电子商务论文

电子商务学年论文:海尔 简介海尔:海尔集团是世界第二大白色家电制造商、中国最具价值品牌。海尔在全球30多个国家建立本土化的设计中心、制造基地和贸易公司,全球员工总数超过5万人,已发展成为大规模的跨国企业集团,2007年海尔集团实现全球营业额1180亿元。 海尔品牌旗下冰箱、空调、洗衣机、电视机、热水器、电脑、手机、家居集成等19个产品被评为中国名牌,其中海尔冰箱、洗衣机还被国家质检总局评为首批中国世界名牌。 一、电子商务是海尔的必由之路 网络经济时代的到来,企业如何发展,是一个崭新而迫切的的问题。1999年达...
2010-06-22 10:31 | 阅读 678 次 | 评论 0 条