琥珀玲珑
琥珀玲珑的世界,也是你们的世界哦。大家一起来吧!!!!
摘要: 方法一将Oracel数据库对应表中“收单时间的字段”receive_sheet_time,由原来的Date类型改为timestamp然后,在java程序中,由 (java.util.timestamp)obj[5] 这样返回值,就会显示有“年月月时分秒“了。如 2010-03-01 14:39:17... 阅读全文
posted @ 2015-03-05 11:51 琥珀玲珑 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 接收端:package Socket编程示例;import java.io.*;import java.net.InetAddress;import java.net.Socket;public class CLIENT { /** * @param args */ public static ... 阅读全文
posted @ 2014-09-11 18:43 琥珀玲珑 阅读(131) 评论(0) 推荐(0) 编辑
摘要: IP多播地址采用D类IP地址, 地址范围是224.0.0.0到239.255.255.255.接收端:package 组播套接字;import java.io.*;import java.net.*;public class Client1 { /** * @param args */ publ... 阅读全文
posted @ 2014-09-11 18:39 琥珀玲珑 阅读(106) 评论(0) 推荐(0) 编辑
摘要: java连接mysql时,需要安装驱动。如果未安装,会出现找不到“com.mysql.jdbc.Driver”的错误。最新版驱动是:mysql-connector-java-5.1.22下载地址:http://pan.baidu.com/share/link?shareid=64178&uk=2585386604安装驱动程序:1、下载jdbc的驱动,解压到任一位置中2、打开eclipse,找到再在windows->preferences->java->installed jres3、单击Sun JDk….,然后单击edit4、点击add external jars,选 阅读全文
posted @ 2014-04-09 18:55 琥珀玲珑 阅读(303) 评论(0) 推荐(0) 编辑
摘要: //h1.h#includetypedef char QElemType; typedef void Status;using namespace std;typedef struct QNode{QElemType data;struct QNode *next;}*QueuePtr;typedef struct{QueuePtr front;//队头指针QueuePtr rear;//队尾指针}LinkQueue;//function.h#include"h1.h" using namespace std;LinkQueue InitQueue() //构建一个空队列Q 阅读全文
posted @ 2014-03-02 14:53 琥珀玲珑 阅读(375) 评论(0) 推荐(0) 编辑
摘要: #include#include#define OK 1#define ERROR 0typedef char Status;//换名#define List_Size 10typedef struct //换名{char *elem; //成员指针int length; //长度int listsize; //现有的长度}SqList;SqList C_NullList() //初始化顺序表//void C_NullList(){SqList L;L.elem=(Status *)malloc(List_Size *sizeof(Status)); //创建类型的Status *(还是指针) 阅读全文
posted @ 2013-11-17 14:09 琥珀玲珑 阅读(274) 评论(0) 推荐(0) 编辑
摘要: ---恢复内容开始---实验主要操作步骤:1、启动VS2010,新建ASP.NET空网站,语言为C#,将网站保存到磁盘上。1、启动VS2010,新建ASP.NET空网站,语言为C#,将网站保存到磁盘上。2、在网站根目录上单击鼠标右键选“添加新项”,添加login.aspx文件。3、在login.aspx的[设计]视图中,插入表格:2行1列,居中对齐,寸距和间距均为0,宽度为400px,边框为1px的灰色。4、设置第一个单元格的BgColor为淡蓝色,Height为30px。5、设置第2个单元格的Align为center,Height为200px,Valign为top。6、添加TextBox、L 阅读全文
posted @ 2013-10-30 13:25 琥珀玲珑 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1查询刘伟选的课程名。(t,tc,c)select distinct cn from t,tc,cwhere t.tno=tc.tno and tc.cno=c.cno andc.cno in(select tc.cno from tcwhere tc.tno in(select t.tno from t where tn='刘伟'))2查询不学数据库的学生学号。(sc,c)select sno from swhere not exists (select * from cwhere cn='数据库' andexists (select * from scwhe 阅读全文
posted @ 2013-09-26 16:48 琥珀玲珑 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 1.在D盘根目录下创建一个数据库db_temp,该数据库中有两个数据文件,其中主数据文件db_temp.mdf为10MB,最大大小为100MB,按10MB方式增长, 一个数据文件db_temp1.ndf,,初始大小为10MB,最大大小为不限制,按10%增长,db_temp_log1,db_temp_log两个日志文件大小均为5MB,最大限制均为为5MB,增长方式为5MBcreate database db_tempon primary( name=db_temp, filename='e:\db_temp.mdf', size=10MB, maxsize=100MB, file 阅读全文
posted @ 2013-09-12 10:36 琥珀玲珑 阅读(624) 评论(0) 推荐(0) 编辑
摘要: create database nncreate database jxon primary(name=jx1,filename='d:\jx1.mdf',size=10,maxsize=100,filegrowth=2),(name=jx2,filename='d:\jx2.ndf')log on(name=jx1_log,filename='d:\jx1_log.ldf')create database cson primary(name=cs1,filename='d:\cs1.mdf'),filegroup csg(nam 阅读全文
posted @ 2013-09-10 15:51 琥珀玲珑 阅读(182) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;int main(){ int a;cout>a; //cout.setf(ios::unitbuf); //每次输出之后刷新所有的流 //cout.setf(ios::stdio); //每次输出之后清除stdout,stderr cout.setf(ios::showbase); //设置输出时的基数符号(八进制以0打头,十六进制以0x打头)cout>b; cout.setf(ios::uppercase); //以十六进制输出字母时以大写字母表示 cout.setf(ios::hex);cout<<" 阅读全文
posted @ 2013-08-06 18:13 琥珀玲珑 阅读(303) 评论(0) 推荐(0) 编辑
摘要: #includeint fac(int n){int f;if(n<0) //n不能小于0printf("n小于0,data error!");elseif(n==0||n==1) //当n=1或0时,n!=1 f=1;elsef=fac(n-1)*n; //当n大于1时,n!=n*(n-1)!return f;}int main(){int n,sum;printf("please enter integer number:");scanf("%d",&n);sum=fac(n);printf("sum=%d 阅读全文
posted @ 2013-07-19 16:38 琥珀玲珑 阅读(101) 评论(0) 推荐(0) 编辑
摘要: #include#include#define size 10int i,a[size],*p; //定义全局变量i,全局数组a[size],全局指针pvoid shuru1(){ FILE *fp;if((fp=fopen("shu.dat","w"))==NULL) { printf("can't open file!\n"); exit(0); }printf("请输入内容:");for(i=0;i<size;i++){ scanf("%d",&a[i]); fput 阅读全文
posted @ 2013-07-19 16:05 琥珀玲珑 阅读(120) 评论(0) 推荐(0) 编辑
摘要: #includetypedef struct student{int num;float score;struct student *next;}stu; //命名了一个新的类型名代表结构体类型void create(){stu a,b,c,*head,*p; //a,b,c为三个链表的结点,head为头结点a.num=101;a.score=85.5;b.num=102;b.score=90.5;c.num=103;c.score=95;head=&a;a.next=&b;b.next=&c;c.next=NULL;p=head; //使p指向头结点printf(&q 阅读全文
posted @ 2013-07-18 09:58 琥珀玲珑 阅读(94) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#define size 3struct employee{ char name[6]; //姓名 char num[8]; //编号 char sex[2]; //性别int age; //年龄 char addr[10]; //地址 int money; //工资 char health[4]; //身体健康程度 char cul[4]; //文化程度 }emp[size]; //employee结构体struct employee_type{ char name[6]; int money;}empl[size]; //employee_t 阅读全文
posted @ 2013-07-16 10:35 琥珀玲珑 阅读(415) 评论(0) 推荐(0) 编辑