本人是初学者,请高手指教
#include<iostream.h>#include<string.h>
int year=2003;
char M[]="ABCD";
int Get1() { return(year); }
int &Get2() { return(year); }
char Get3(int a) {return(M[a]);}
char *Get4(int a) {return(M+a);}
char &Get5(int a) {return(M[a]);}
void main( )
{
int b;
char K[10]={0};
Get2( )++;
b=Get1( )+Get2( );
K[0]=Get3(1);
K[1]=Get5(0);
Get5(2)= 'Y';
strcpy(K+2, M+1);
Get5(1)+=32;
cout <<"M="<<M;
cout <<"K="<< K << "b=" << b << endl;
}
这个程序的过程看不懂,请高手详解,先谢谢了!