>>99
こうですか?
int *ip = (int*)0;
double *dp = (double*)0;

これじゃだめですか?
int *ip = 0;
double *dp = 0;