#include //成员函数适配器 #include using namespace std; class Person{ public: Person(string ...
![240](https://cdn2.jianshu.io/assets/default_avatar/4-3397163ecdb3855a0a4139c34a695885.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
#include //成员函数适配器 #include using namespace std; class Person{ public: Person(string ...
#include //函数指针适配器 #include using namespace std; void printVector(int i,int num){ cou...
#include //取反适配器--一元取反 #include using namespace std; class GreatThanFive:public unary_f...
//适配器 #include using namespace std; class MyPrint:public binary_function//第二步:继承 <参数类型1...
类内实现: 结果为: 友元函数的类外实现: 结果为:
Person模板类: 作为参数的三种格式:
代码如下: 打印结果:
代码如下: struct NodeList{ int data; struct NodeList * next; }; void test(){ struct N...
代码: int arr[2] = {1,2}; printf("arr的地址:%p\n",arr); printf("&arr的地址:%p\n",&arr); p...
最近复习了下c语言,以前学习它只是为了应付考试,现在重新学习下,写写文章只是想着,哪天年龄大了,忘记了,再回头来翻看一下,如果其中有什么不对的地方,也请劳烦指正哈。 #inc...
1.启动MySQL服务 sudo /usr/local/mysql/support-files/mysql.server start 2.停止MySQL服务 sudo /u...
下载地址:http://xclient.info/s/pycharm.html?a=dl&v=2018.1.3&k=0&t=5d715616c57d46b4ed06f92f4...