RECOMPILE
来源:互联网 发布:afnetworking上传json 编辑:程序博客网 时间:2024/05/22 05:15
1. Eight Queens Problem
2. Link Node
针对书上那个内存泄漏问题
//single linknotestruct linknote{ double data; linknote*next;};int main(){ linknote*head, *end, *p; head = end = new linknote; double x = 0; while (1) { cin >> x; if (x == -1)break; p = new linknote; end->next = p; p->data = x; end = p; } end->next = NULL; while (head->next != NULL) { linknote*m; m = head; head = head->next; cout << head->data << endl; delete m; } cout << endl; return 0;}
3. Joseph circle
对于三个就删除的单循环节点
用书上的方法一个接一个直接操作比我写这种判定方式简单
//Link notestruct linknote{ double data; linknote*next;};int main(){ linknote*head, *end,*p; head=end = new linknote; int n;//n persons cout << "printin n\n"; cin >> n; p = new linknote; head->data = 1; for (int i = 2; i <= n; i++) { p = new linknote; p->data = i; end->next = p; end = p; } end->next = head; for (int i = 1; n>0&&i>0; i++) { if (i == 2) { if (n == 1) { cout << "what's left now?\t" << head->data << endl; break; } linknote*tmp; cout << "the fuckingasshole\t" << head->next->data << endl; tmp = head->next->next; delete head->next; head->next = tmp; head = head->next; i = 0; n--; } else head = head->next; } cout << endl; return 0;}
4. Binary Search
5. General Quick Search
6. Find Coins
7. Max Size Number
8. Aport Books
阅读全文
0 0
- RECOMPILE
- with recompile
- recompile with -fPIC
- 解决recompile module问题
- SQL Server option(recompile)
- debugging information corrupt; recompile module
- 编译出错 recompile with -fPIC
- debugging information corrupt; recompile module 解决办法
- Recompile Invalid Objects In The Database
- debugging information corrupt; recompile module 解决办法
- SQL Server Execution Plan Recompile and Clean
- cmake编译时候出现recompile with -fPIC
- libdlib.a recompile with -fPIC 问题
- Recompile a schema which does not belong to you.
- fatal error LNK1103: debugging information corrupt; recompile module
- fatal error LNK1103: debugging information corrupt; recompile module
- fatal error LNK1103: debugging information corrupt; recompile module
- fatal error LNK1103: debugging information corrupt; recompile module
- kappa系数在评测中的应用
- I/O文件的加密运算
- Halcon 提取ROI区域
- Spring 学习笔记
- 算法 第四版 2.1.25 不需要交换的插入排序
- RECOMPILE
- 【poj 1144】Network 【Central Europe 1996】
- 指针小结
- DPDK(7):l2fwd测试过程
- centos 6.6 配置 静态ip 能上网
- 【icourse163】学习python爬虫的代码整理
- linux centos 6.4 安装mysql 5.6
- JavaScript 设计模式
- oracle之 sqlplus prelim 参数介绍 ( 处理hang )