摘要:
#include #define uint unsigned int #define uchar unsigned char uchar code f[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f}; sbit wela=P1^1; sbit dula=P1^0; sbit jian=P2^4; sbit jian2=P2^5; uchar a=0,b=0,c; uchar key_1(void); uchar key_2(void); void delay(uint z) { uint x,y; for(x=z;x>0;x-- 阅读全文
posted @ 2013-07-27 20:45
jlins
阅读(229)
评论(0)
推荐(0)
摘要:
首先看官方文档上的解释:Managing External TablesOracle Database allows you read-only access to data in external tables. External tables are definedas tables that do not reside in the database, and can be in any format forwhich an access driver is provided. By providing the database with metadatadescribing an... 阅读全文
posted @ 2013-07-27 20:43
jlins
阅读(315)
评论(0)
推荐(0)
摘要:
题目:http://acm.hdu.edu.cn/showproblem.php?pid=1863注意有可能出现无法生成树的情况。#include #include using namespace std;const int inf=0xffffff;int weight[105][105],n,m;int prime(){ int sum=0; int pre[105]; int dis[105]; bool visit[105]; memset(visit,0,sizeof(visit)); for(int i=1;iweight[index][j]) { dis[j]=weig... 阅读全文
posted @ 2013-07-27 20:41
jlins
阅读(214)
评论(0)
推荐(0)
摘要:
#include #define uint unsigned int #define uchar unsigned char uchar code f[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f}; sbit wela=P1^1; sbit dula=P1^0; sbit jian=P2^4; sbit jian2=P2^5; uchar a=0,b=0,c; uchar key_1(void); uchar key_2(void); void delay(uint z) { uint x,y; for(x=z;x>0;x-- 阅读全文
posted @ 2013-07-27 20:39
jlins
阅读(233)
评论(0)
推荐(0)
摘要:
题目链接:hdu2822会优先队列话这题很容易AC。。。。#include#include#include#include#define N 1005using namespace std;char map[N][N];int v[N][N],d[4][2] = { {-1,0},{1,0},{0,-1},{0,1} };int begin_x,begin_y,end_x,end_y,n,m;struct node{ int x,y,step; friend bool operator b.step; }};void bfs(){ memset(v,0,sizeof(... 阅读全文
posted @ 2013-07-27 20:37
jlins
阅读(176)
评论(0)
推荐(0)
摘要:
1.场景模拟考虑这样一个实际应用: HR提出,当选择一个部门或者是分公司的时候,要把所有的分公司下的员工显示出来,而且不要翻页,方便进行业务处理,只需要显示姓名即可,但是点击姓名会出现这位员工的详细信息。 2.不用模式解决 数据库代码就不写了,总的来说就是用户表和部门表 直接上java代码 2.1.描述用户数据的对象package demo10.proxy.example1;/** * 描述用户数据的对象 */public class UserModel { /** * 用户编号 */ private String userId; /** * 用户姓名 */ private St... 阅读全文
posted @ 2013-07-27 20:35
jlins
阅读(272)
评论(0)
推荐(0)
摘要:
Description People in Silverland use coins.They have coins of value A1,A2,A3...An Silverland dollar.One day Tony opened his money-box and found there were some coins.He decided to buy a very nice watch in a nearby shop. He wanted to pay the exact price(without change) and he known the price would no 阅读全文
posted @ 2013-07-27 20:34
jlins
阅读(262)
评论(0)
推荐(0)
摘要:
在Oracle RMAN备份(一)中,对各种文件在RMAN中备份进行了说明, 一.备份集的复制在RMAN备份中,可以备份其自己的备份,即备份一个文件放在多个目录下,oralce支持最多备份四个。1.在默认情况下有备份的数目,CONFIGUREDATAFILEBACKUPCOPIESFORDEVICETYPEDISKTO1;#default可以修改默认的数值,来达到所需的要求。 2.直接使用命令来复制 在/u01目录下建立两个文件夹b1,b2,在RMAN中使用命令如下,backupcopies2datafile6format='/u01/b1/d_%U','/u01/b2 阅读全文
posted @ 2013-07-27 20:32
jlins
阅读(311)
评论(0)
推荐(0)
摘要:
//串口发送 void sendChar(char *p)//调用前关中断,调用完成后关中断{ while(*p != '\0') { SBUF = *P while(!TI); TI = 0; p++; }} //串口接收//串口初始化 void series_init(){ SCON = 0x50; //串口工作方式1,允许接受 TMOD = 0x20; //定时器T1工作方式2 TH1 = 0xfd;TL1 = 0xfd; //定时初值 PCON &= 0x00; //smod = 0 TR1 = 1; //开启定时器1 EA = 1;ES = 1; //开总中断 阅读全文
posted @ 2013-07-27 20:30
jlins
阅读(725)
评论(0)
推荐(0)
摘要:
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=1789题目意思: 有n个作业,每个作业有一个截止日期,每个作业如果超过截止日期完成的时候有一个惩罚值,问怎样安排作业,使惩罚值最小。解题思路:贪心。先按惩罚值从大到小排序,惩罚值越大,就应该尽量安排改作业在截止日期之前完成,而怎样保证既在截止日期之前完成,又保证其他的作业的惩罚值总和较小呢,应该安排在离该截止日期最近的可安排那个日期,这样就保证了惩罚值最小。代码:#include#include#include#include#include#include#include#include#in. 阅读全文
posted @ 2013-07-27 20:27
jlins
阅读(208)
评论(0)
推荐(0)

浙公网安备 33010602011771号