摘要: #include "iostream"#if 0 //不同类型的参数 作交换函数 void swap(int &a,int &b) { int c ; c = a; a = b; b = c; } void swap2(float &a, float &b) { flo... 阅读全文
posted @ 2015-08-19 23:05 潘探 阅读(556) 评论(0) 推荐(0)
摘要: 函数的指针#include "stdio.h"#include "stdlib.h"#include "string.h"#if 0 //定义一个函数类型 typedef int Func(int);//函数名称就代表函数的入口地址 函数名称本身就是一个指针int test(int a){ ... 阅读全文
posted @ 2015-08-19 00:16 潘探 阅读(151) 评论(0) 推荐(0)