摘要: 1 /*对于 0 1 2 3 4 5 6 7 8 9 2 * _ _ _ _ _ _ _ _ _ _ 3 * 下划线上输入数字,使得下面数字代表上面数字出现的次数 4 * 比如 1下面是3的话,表示1 在下面出现三次 5 * 思路,因为有十个空格,也就是说下面出现十个数字, 6 * 所以 (1)下面数字的和是10 7 * 因为下面的数字的和是10 下面的数带表上面的数出现的次数 8 * 所以 (2)上面的数乘以下面的数的和也是10 9 * 由此 编程实现如下: */10 11 #include <iostream>12 using namespac... 阅读全文
posted @ 2012-10-26 20:04 liangflying 阅读(171) 评论(0) 推荐(0) 编辑
摘要: #include <boost/thread/thread.hpp>#include <boost/thread/mutex.hpp>//#include <boost/bind.hpp>#include <boost/thread/tss.hpp>#include <boost/thread/once.hpp>#include <boost/thread/condition.hpp>#include <iostream>//boost::mutex io_mutex;////struct count//{// 阅读全文
posted @ 2012-10-26 20:02 liangflying 阅读(229) 评论(0) 推荐(0) 编辑