
please wait
Rewrite each of the following old-style casts to use a named cast: int i; double d; const string *ps; char *pc; void *pv; (a) pv = (void*)ps; (b) i = int(*pc); (c) pv = &d; (d) pc = (char*) pv; |
|
|
pv = static_cast<void*>(const_cast<string*>(ps));
more better.