如: int * num = new int[10];// 发现10个数字还是不够要增加到50个;num = new int[50]; // 这样做的话因为重新分配内存导致先前的值不在了,RT,请问该怎么办?