In the following exmple, how 'd I use sprintf when I have a boolean type of variable?
What is supposed to replace ? in the sprintf statement ? Thanks.Code:char s[64]; bool bVar = false; sprintf(s, "This is a boolean variable bVar = %?", bVar);
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 11 of 11
Threaded View
|
Click Here to Expand Forum to Full Width |