- (void)viewDidLoad
{
int testNum=10;
NSString* testStr=@"Hi";
GoodsBasicInfoEntity*testGBIE=[[GoodsBasicInfoEntity alloc]init];
testGBIE.pC_Name=@"1111";
[self testEdit: &testNum str:&testStr testGBIE:testGBIE];
NSLog(@"%d,,,,,,%@,,,,,,%@",testNum,testStr,testGBIE.pC_Name);//输出:20,,,,,,hello,,,,,,how are you ?
}
-(void)testEdit:(int *)num str:(NSString**)str testGBIE:(GoodsBasicInfoEntity*)testGBIE
{
*num=20;
*str=@"hello";
testGBIE.pC_Name=@"how are you ?";
testGBIE=[[GoodsBasicInfoEntity alloc]init];
testGBIE.pC_Name=@"123";
}