Note: : : if you can't write process, Smith said, only that you don't talk, I will not give you points, only write all process [on the basis of the original code to write the correct code, easy to understand], and the program can run, [this difficult to understand the basic knowledge is poor, need to hold] I don't waste your time, you also don't waste my points, can teach me, thank you!!!!! Not quite understand, or don't want to write a detailed process, please bypass!!!!!!
# include "stdafx. H"
#include
# include "Person. H"
Using namespace STD.
Int _tmain (int arg c, _TCHAR * argv [])
{
Int iResult=1;
CPerson p;
IResult=p. etlndex (25);
If (iResult>=0)
Cout<& lt;" M_shAge is: "& lt; & lt; P.g etAge () & lt; & lt; Endl;
IResult=p. etlndex (0);
If (iResult>=0)
Cout<& lt;" M_ilndex is: "& lt; & lt; P.g etlndex () & lt; & lt; Endl;
Char bufTemp []="Mary".
IResult=p. etName (bufTemp);
If (iResult>=0)
Cout<& lt;" M_cName is: "& lt; & lt; P.g etName () & lt; & lt; Endl;
IResult=p. etSalary (1700.25);
If (iResult>=0)
Cout<& lt;" M_dSalary is: "& lt; & lt; P.g etSalary () & lt; & lt; Endl;
Return 0;
}
CodePudding user response:
Study of sincerity and there is some momentum, a great god will help her to you all!BTW, the effect of learning what is unknown,
CodePudding user response:
No one (Person) to do,CodePudding user response:
@ leeky, yes, no one can solve, can you? The lack of some data code, you can swallow?CodePudding user response:
According to the original post, lack what member function (_tmain, call to the Person. H and Person. The CPP no declaration and implementation, add the function it is ok to write a complete,CodePudding user response:
@ ooolinux: light said don't write, I also will, you write, I will know where is the problem, please get written. б о л ь ш о е с п а с и б оCodePudding user response:
Try to do what matter,CodePudding user response:
# DelphiGuy: don't help me, don't talk,CodePudding user response: