I face an issue in my c++ program
when I try to compare an integer variable with a variable void*
It keeps returning the errors:
error C2446: '==' : no conversion from 'void *' to 'int'
error C2040: '==' : 'int' differs in levels of indirection from 'void *'
I understand there's a problem but how that can be fixed?
Is there some sort of casting?
Code:int price; void* val; if(price==val) //do things