#include <iostream.h>
int* add(int a, int b){
int* x = new int(0);
*x = a+b;
return x;
}
void main(){
int* result = add(3, 4);
cout << *result << endl;
delete result;
}
int* add(int a, int b){
int* x = new int(0);
*x = a+b;
return x;
}
void main(){
int* result = add(3, 4);
cout << *result << endl;
delete result;
}
發表留言