동적할당하는 함수 구현 ** (x) **& (o) void alloc(int **&src,int w,int h); void main(){ int **src;
void alloc(int **&src,int w,int h); void main(){
int **src;
alloc(src,w,h); }
alloc(src,w,h);
}
void alloc(int **&src,int w,int h){
int i,j;
src = new int*[h];
for(i=0;i<h;i++){
src[i] = new int[w];
Name
Password
Homepage
secret
Comment
댓글을 달아 주세요