using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication3
{
class Program
{
static void Main(st...
分类:
其他好文 时间:
2014-11-24 10:13:03
阅读次数:
103
线程的定义给我们提供了并发执行多个任务的方式,大多数情况下我们会让每个任务都自行执行结束,这样能保证事务的一致性,但是有时我们希望在任务执行中取消任务,使线程停止。在java中要让线程安全、快速、可靠地停下来并不是一件容易的事,java也没有提供任何可靠的方法终止线程的执行。回到第六小节,线程调度策略中有抢占式和协作式两个概念,与之类似的是中断机制也有协作式和抢占式。
历史上Java曾经使用st...
分类:
编程语言 时间:
2014-11-23 23:19:06
阅读次数:
341
距第一篇的开箱水文,已经有4个月的时间了,但因为懒,就没有下文了。终于,今天,我觉得写一篇准技术文章了。 忘记了是怎么开始用的ST,应该是在网上看到别人推荐才用到吧,用了有半年了。在windows下是绝对的神器,Notepad++之类的无可比拟;linux下,因为有个vim,鄙人对vim不懂,...
分类:
其他好文 时间:
2014-11-23 21:38:35
阅读次数:
316
经典问题:二维偏序。给定平面中的n个点,求每个点左下方的点的个数。因为 所有点已经以y为第一关键字,x为第二关键字排好序,所以我们按读入顺序处理,仅仅需要计算x坐标小于树状数组。 1 #include 2 #include 3 #include 4 using namespace std; 5 st...
分类:
编程语言 时间:
2014-11-23 17:16:08
阅读次数:
244
1、下载sublime text 2文件,解压并复制到/opt目录2、在/usr/share/applications目录下新建sublime_text.desktop文件3、文件输入以下内容:[Desktop Entry]Version=2.0Name=Sublime TextComment=ST...
分类:
系统相关 时间:
2014-11-22 18:43:51
阅读次数:
213
/*编写一个随机点名系统,运行该系统后,按空格键可以显示出一名同学,以前被选中的同学,将不会再次被选中*/
#include
#include
#include
#include
#include
struct studentinfo
{
char sNo[5];
char sxueNo[14];
char sname[20];
}st[100];
int main()
{
...
分类:
编程语言 时间:
2014-11-22 17:27:15
阅读次数:
235
http://www.fineui.com/bbs/forum.php?mod=viewthread&tid=2506&page=1/// /// 选中的行 /// /// /// protected string HowManyRowsAreSelected(Grid grid) { St...
分类:
其他好文 时间:
2014-11-22 10:36:39
阅读次数:
913
一、Mat类型:矩阵类型,Matrix。在openCV中,Mat是一个多维的密集数据数组。可以用来处理向量和矩阵、图像、直方图等等常见的多维数据。Mat有3个重要的方法:1、Mat mat = imread(const String* filename); 读取图像2、imshow(const st...
分类:
其他好文 时间:
2014-11-21 21:51:26
阅读次数:
269
@Id@GenericGenerator(name = "id-generator", strategy = "uuid")@GeneratedValue(generator = "id-generator",strategy = GenerationType.IDENTITY)private St...
分类:
其他好文 时间:
2014-11-21 16:06:21
阅读次数:
190
Test BlogTest BlogTest BlogTest BlogTest BlogTest BlogTest BlogTest BlogTest BlogTest BlogTest BlogTest BlogTest BlogTest BlogTest BlogTest BlogTest B...
分类:
其他好文 时间:
2014-11-21 01:15:11
阅读次数:
241