会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
soul390
静有所思,学有所成。
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
4
5
6
7
8
9
10
11
12
···
19
下一页
2014年5月24日
ProjectEuler 004题
摘要: 1 #include 2 using namespace std; 3 4 int main() { 5 bool isPalindromic (int num); 6 int res = 0; 7 8 for(int i = 100; i res)11 ...
阅读全文
posted @ 2014-05-24 09:08 soul390
阅读(130)
评论(0)
推荐(0)
2014年5月23日
ProjectEuler 003题
摘要: 1 //题目:The prime factors of 13195 are 5, 7, 13 and 29.2 //What is the largest prime factor of the number 600851475143 ? 1 #include 2 using namespace s...
阅读全文
posted @ 2014-05-23 19:54 soul390
阅读(167)
评论(0)
推荐(0)
2014年5月22日
MFC 绘制坐标系
摘要: 主要讨论映射模式:MM_ANISOTROPIC,MM_ISOTROPIC.及相关方法的应用。1,先建立一个MFC单文档,过程不再赘述。2,在View类中找到CMainFrame::PreCreateWindow函数,在其中设置默认窗口大小为400 pixel*300 pixel:1 BOOL CTe...
阅读全文
posted @ 2014-05-22 17:00 soul390
阅读(3431)
评论(2)
推荐(0)
2014年5月16日
MySql 改变table的列名以及列的类型
摘要: 1 ALTER TABLE table_name CHANGE COLUMN old_col_name new_col_name datatype; #改变table的列名以及列的类型
阅读全文
posted @ 2014-05-16 15:00 soul390
阅读(317)
评论(0)
推荐(0)
2014年5月15日
多线程编程<五>
摘要: 1 /** 2 * 中断线程:当线程由于调用sleep(),join(),wait()而暂停时,如果中断它,则会收到一个InterruptedException异常。 3 * 调用Thread.isInterrupted(),Thread.interrupted()判断中断,Thread.in...
阅读全文
posted @ 2014-05-15 09:20 soul390
阅读(113)
评论(0)
推荐(0)
2014年5月14日
多线程编程<四>
摘要: 1 /** 2 * 守护线程daemon['diːmən] 3 * @author Administrator 4 * 5 */ 6 public class DaemonDemo { 7 public static void main(String[] args) { 8 ...
阅读全文
posted @ 2014-05-14 21:37 soul390
阅读(141)
评论(0)
推荐(0)
多线程编程<三>
摘要: 1 /** 2 * 线程的暂停、恢复和停止 3 * @author Administrator 4 * 5 */ 6 public class ThreadControlDemo { 7 public static void main(String[] args) { 8 ...
阅读全文
posted @ 2014-05-14 17:01 soul390
阅读(155)
评论(0)
推荐(0)
多线程编程<二>
摘要: wait()与notify(): 1 public class ThreadComDemo { 2 public static void main(String[] args) { 3 try { 4 SyncOb sObj= new SyncOb()...
阅读全文
posted @ 2014-05-14 15:33 soul390
阅读(138)
评论(0)
推荐(0)
多线程编程<一>
摘要: 1 /** 2 * 通过制定synchronized限定符,可以同步用于对象的一个或多个方法。当调用同步的方法时,对象会被加锁,直到方法返回。 3 * @author Burke 4 * 5 */ 6 public class SyncDemo { 7 public static ...
阅读全文
posted @ 2014-05-14 11:00 soul390
阅读(138)
评论(0)
推荐(0)
对集合使用Comparator
摘要: 1 import java.util.Comparator; 2 import java.util.PriorityQueue; 3 4 /** 5 * 对集合使用Comparator,不改变对象的自然顺序 6 * @author Administrator 7 * 8 */ 9 pub...
阅读全文
posted @ 2014-05-14 09:03 soul390
阅读(173)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
19
下一页
公告