上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 49 下一页

2013年7月31日

摘要: import java.io.ByteArrayOutputStream; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.InputStream; import java.io.OutputStream;public class MyClassLoader extends ClassLoader{/** * @param args */ public static void main(String[] .. 阅读全文

posted @ 2013-07-31 20:02 冰天雪域 阅读(140) 评论(0) 推荐(0) 编辑

摘要: How Many Points of Intersection?We have two rows. There areadots on the top row andbdots on the bottom row. We draw line segments connecting every dot on the top row with every dot on the bottom row. The dots are arranged in such a way that the number of internal intersections among the line segment 阅读全文

posted @ 2013-07-31 20:00 冰天雪域 阅读(132) 评论(0) 推荐(0) 编辑

摘要: Pieces Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 337 Accepted Submission(s): 186 Problem Description You heart broke into pieces.My string broke into pieces.But you will recover one day,and my string will never go back. Given a ... 阅读全文

posted @ 2013-07-31 19:57 冰天雪域 阅读(199) 评论(0) 推荐(0) 编辑

摘要: 在 MyEclipse 的可视化 Swing 中,有 JTable 控件。JTable 用来显示和编辑常规二维单元表。 那么,如何将 数据库SQL中的数据绑定至JTable中呢?在这里,提供两种方法。JTable的构造方法 通过查阅Java的API,可以可以得到JTable的两个重要的构造方法: JTable(Object[][] rowData, Object[] columnNames) 构造一个 JTable 来显示二维数组 rowData 中的值,其列名称为 columnNames。 JTable(TableModel dm) 构造一个 JTable,使... 阅读全文

posted @ 2013-07-31 19:56 冰天雪域 阅读(1167) 评论(0) 推荐(0) 编辑

摘要: 帧传输类就是按照一帧的固定大小来传输数据,所有的写操作首先都是在内存中完成的直到调用了flush操作,然后传输节点在flush操作之后将所有数据根据数据的有效载荷写入数据的长度的二进制块发送出去,允许在接收的另一端按照固定的长度来读取。 帧传输类同样还是从缓存基类TBufferBase继承而来,实现的接口当然也基本相同,只是实现的方式不同而已,下面就来看看具体的实现过程和原理。 这个类所采用的默认缓存长度是512(static const int DEFAULT_BUFFER_SIZE = 512;),两个基本构造函数一个采用默认的缓存长度,另一个可以指定一个需要的缓存长度。下面... 阅读全文

posted @ 2013-07-31 19:54 冰天雪域 阅读(371) 评论(0) 推荐(0) 编辑

摘要: 列的第四篇,上一篇在:http://blog.csdn.net/jiluoxingren/article/details/9474661 数据的提取,新增和修改由于在写第三章的时候没有充分考虑这一章的内容,所以第三章的打开表的代码不能适应这一章的需求(新增和修改这两项操作),所以第三章的代码要加上一些内容,在第三章最后,紫色字体标记的就是新加上去的。我为我没有充分考虑教程的延续性而道歉。 这一章的内容跟SQL没关系了,目前为止SQL的任务已经完成,就是为我们打开一个记录集。当然以后你会见识到他强大的能力。先说一些界面怎么配置,提取出来的数据总是要显示的。为了简单,我将使用两个List并排在一起 阅读全文

posted @ 2013-07-31 19:52 冰天雪域 阅读(1105) 评论(0) 推荐(0) 编辑

摘要: 在android的开发中,尤其是与访问网络有关的开发,都要判断一下手机是否连接上了网络,下面是一个判断是否连接网络的嗲吗片段:package cn.com.karl.util;import com.kubu.main.R;import android.app.Activity;import android.app.AlertDialog;import android.content.Context;import android.content.DialogInterface;import android.content.Intent;import android.net.Connectivit 阅读全文

posted @ 2013-07-31 19:50 冰天雪域 阅读(187) 评论(0) 推荐(0) 编辑

摘要: Simple calculations The ProblemThere is a sequence of n+2 elements a0, a1,…, an+1(n #include int t;int n;double star, end;double c[3005];double a1;int main(){ scanf("%d", &t); while (t --) { memset(c, 0 ,sizeof(c)); scanf("%d", &n); scanf("%lf%lf",&star, &am 阅读全文

posted @ 2013-07-31 19:47 冰天雪域 阅读(146) 评论(0) 推荐(0) 编辑

摘要: 这题官方结题报告一直在强调不难,只要注意剪枝就行。这题剪枝就是生命....没有最优化剪枝就跪了:如果当前连续切割数加上剩余的所有切割数没有现存的最优解多的话,不需要继续搜索了#include #include #include #include #include # define MAX 33using namespace std;struct node { int id,tim,total; int fr[11];}cuts[MAX];int n,m,w;int ans[MAX],final,tmp[MAX],vis[222];bool cmp (node a,node b) {... 阅读全文

posted @ 2013-07-31 19:46 冰天雪域 阅读(148) 评论(0) 推荐(0) 编辑

摘要: where条件表达式--统计函数Select count(1) from student;--like模糊查询--统计班上姓张的人数 select count(*) from student where realName like '张%';--统计班上张姓两个字的人数 select count(*) from student where realName like '张_';--统计班上杭州籍的学生人数 select count(*) from student where home like '%杭州%';--查询班上每位学生的年龄 selec 阅读全文

posted @ 2013-07-31 19:44 冰天雪域 阅读(210) 评论(0) 推荐(0) 编辑


上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 49 下一页

Copyright © 2024 冰天雪域
Powered by .NET 8.0 on Kubernetes