函数重载

// C++练习.cpp : 定义控制台应用程序的入口点。
//

//重载函数,函数重载与返回值无关
#include "stdafx.h"

void xxx(int a,int b){
a=123;
b=321;
}
int xxx(int a){
a=123;
return 0;
}

int _tmain(int argc, _TCHAR* argv[])
{
xxx(1,2);
xxx(1);

}

 

posted @ 2013-07-28 02:14  宝贝,我永远都在  阅读(108)  评论(0)    收藏  举报