C++のconst*&リロードについて

755 ワード

/*   php      
	cout << __func__ << endl;
	cout << __FILE__ << endl;
	cout << __LINE__ << endl;
	cout << __DATE__ << endl;
	cout << __TIME__ << endl;
*/

/*      
void fun(short a){
} 
void fun(int a){
}
*/

//   const           
//     const      
/*
void fun(const int a){
} 
void fun(int a){
}
*/
//            
//      const      
/*
void fun(const int &a){
} 
void fun(int &a){
}
*/
//                    
/*   error 
fun(5,6);
void fun(int a,int b = 0){
} 
void fun(int a,int b){
}
fun(5);
void fun(int a,int b = 0){	
} 
void fun(int a){	
}
*/

/*const      
 *    
*               const 
*           const
const int a;   int const a;   
    const       
*/