- 博客(6)
- 收藏
- 关注
原创 【Boost.Asio学习笔记】简介+简单例子
一、异步定时器的使用#include #include #include boost::asio::io_service io;boost::asio::deadline_timer t(io, boost::posix_time::seconds(5));boost::asio::deadline_timer t1(io, boost::posix_time::seconds(
2012-07-31 17:37:22 1219
原创 SOJ-3330(bfs)
1 1 1 01 1 0 00 0 0 0求所有0到1的最短距离struct my{ int x, y, z;} wo;int d[1001][1001];int tag[1001][1001];int main(){ int cases, a, b; scanf("%d", &cases); while (cases--) { scanf("%d%
2012-07-10 17:27:24 870
原创 SOJ-3450(一个数的约数有哪些,需要列举)
【解析】分成两段int main(){ int n; while (scanf("%d", &n) == 1) { int i, end = sqrt(n * 1.0) + 1; int ans[10005], index = 0; int flag = -1; for (i = 1; i <= end; ++i) { if (n % i == 0) { p
2012-07-10 17:02:25 624
原创 面试整理
int i = 1;int main(){ int i = i; return 0;}//能通过编译,但i是未定义的值下水道井盖为什么是圆的展示一段自己觉得写过的最好的程序数组在哪里分配空间(堆or栈)
2012-07-09 11:22:34 1538
原创 Xmart Imaging【笔试】
1. 求sizeof#include #include union my{ int x; int y[5]; char z;};struct you{ int a; union my b; double c;};int main(){ printf("%d %d
2012-07-05 13:21:45 777
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人