I want to have an Int pointer point to a double but am recieving the following error: "cannot convert 'double*' to 'int*' in assignment"
Say we have:
double myVar1;
int *myPointer1 = new int;
myPointer = &myVar1; (cannot convert 'double*' to 'int*' in assignment error)
How do I fix my code? I can't make the pointer a "double" because this is for a school assignment and I was specifically asked to use these data types.