淡水求咸

博客园已经停止更新,请移步 http://lovecjh.com/

导航

2012年2月10日

C++之函数重载

摘要: 重载函数(1)定义:将一组功能非常相近的函数定义为重载函数。(2)一组重载函数是以参数类型或参数个数加以区别的,只有返回值不同不是一组重载函数,将会产生编译错误。(3)编译器调用重载函数的规#include <stdio.h>void ShowMessage(const char* Text,int Type);void ShowMessage(const char* Text,unsigned int Type);int main(){ unsigned char i=0; ShowMessage("hello",i); return 0;}void Show 阅读全文

posted @ 2012-02-10 11:19 深圳彦祖 阅读(718) 评论(0) 推荐(0) 编辑