- 博客(2)
- 资源 (2)
- 收藏
- 关注
转载 C++求24点算法
<br />递归求24点算法: <br /> #include<iostream><br /> #include<string><br /> #include<cmath><br /> using namespace std;<br /> const double PRECISION = 1E-6;<br /> const int COUNT = 4;<br /> const int RESULT = 24;<br /> double number[COUNT]; //这里一定要用doub
2010-06-28 22:30:00
919
1
转载 C++实现单链表逆序
<br />将一个单链表逆序: <br /> struct list_node<br /> {<br /> list_node(int a,list_node* b):data(a),next(b) //这个为了测试方便<br /> {}<br /> int data;<br /> list_node* next;<br /> };<br /> void reserve(list_node* phead)<br /> {<br /> list_node* p = phead->next
2010-06-28 22:27:00
1132
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅