- 博客(3)
- 收藏
- 关注
原创 关于链表的升序排列问题
先贴代码!#include using namespace std; struct Node { int data; struct Node*next; }; Node*head=NULL; void make_list();//升序链表 void show_list();//打印链表 void make_list(); int main() { make_list(); show_lis
2014-03-14 01:29:16
938
转载 pow函数的用法
pow函数: 头文件:math.h/cmath(C++中) 功能:计算x的y次幂。 返回值:x不能为负数且y为小数,或者x为0且y小于等于0,返回幂指数的结果。 返回类型:double型,int,float会给与警告! 在VS2010中,数学函数的参数检查更为严格,如pow(2, 45)会引起一个错误提示如下: error C2668: “pow”: 对重载函数
2014-03-02 23:46:36
7759
原创 子类传递参数到多个基类构造函数
#include using namespace std; class gradfather { public: //gradfather(){} gradfather(int i) { a=i; cout } ~gradfather(){cout private: int a; }; class father { public: //father(){}
2014-02-16 21:06:26
612
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅