I have a class
class C
{};
how may I make it possible to do something like this
int main()
{
C a;
a = (C)1/a;
return 0;
}
the "(C)1" I have trouble with.
Thanks in advance!
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Thread: convert int to classThreaded View
|
Click Here to Expand Forum to Full Width |