...
struct preferences {
bool likesMusic : 1; // Why the ' : ' sign? Is now the value of likeMucis 1 (or True) ?
bool hasHair : 1;
bool hasInternet : 1;
bool hasDinosaur : 1;
unsigned int numberOfChildren: 4;
};
....
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Results 1 to 15 of 28
Thread: Bool type problemThreaded View
|
Click Here to Expand Forum to Full Width |