Click here to Skip to main content
15,879,535 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Why my "i" counter doesn't increases? Pin
Ryan Binns14-Feb-06 21:55
Ryan Binns14-Feb-06 21:55 
AnswerRe: Why my "i" counter doesn't increases? Pin
Malli_S14-Feb-06 22:04
Malli_S14-Feb-06 22:04 
QuestionConsole printing Pin
RichardS14-Feb-06 20:48
RichardS14-Feb-06 20:48 
AnswerRe: Console printing Pin
kakan14-Feb-06 21:16
professionalkakan14-Feb-06 21:16 
AnswerRe: Console printing Pin
Malli_S14-Feb-06 22:08
Malli_S14-Feb-06 22:08 
GeneralRe: Console printing Pin
RichardS14-Feb-06 22:36
RichardS14-Feb-06 22:36 
QuestionRe: Console printing Pin
David Crow15-Feb-06 4:03
David Crow15-Feb-06 4:03 
AnswerRe: Console printing Pin
Dan McCormick15-Feb-06 4:45
Dan McCormick15-Feb-06 4:45 
I have to agree with David, why not stick to the iostream idioms to do the trick. Although if 'var' is defined as type 'char' then you'll need to be a little sneaky since the formatting specifier hex modifies the output base of int's but does not modify the formatting of char's.

<br />
<br />
#include <iostream.h><br />
#include <iomanip.h><br />
<br />
<br />
char var = 0x60;<br />
<br />
cout << hex << var << endl;    // output: `<br />
<br />
cout << hex << (int) var << endl;  // output: 60<br />
<br />
// want to guarantee a minimum width of 2 and padded with '0'?<br />
<br />
cout << hex << setw(2) << setfill('0') << (int) var << endl;<br />
<br />




Remember kids, we're trained professionals. Don't try this at home!
QuestionVC++ 6 connect to Access using ODBC Pin
stny200014-Feb-06 20:37
stny200014-Feb-06 20:37 
AnswerRe: VC++ 6 connect to Access using ODBC Pin
David Crow15-Feb-06 4:07
David Crow15-Feb-06 4:07 
GeneralRe: VC++ 6 connect to Access using ODBC Pin
stny200016-Feb-06 19:47
stny200016-Feb-06 19:47 
GeneralRe: VC++ 6 connect to Access using ODBC Pin
David Crow17-Feb-06 2:28
David Crow17-Feb-06 2:28 
QuestionHow to hook the Shell View Window Pin
kil ramesh14-Feb-06 20:08
kil ramesh14-Feb-06 20:08 
QuestionHow to stop mouse hover notification Pin
BicycleTheif14-Feb-06 19:55
BicycleTheif14-Feb-06 19:55 
QuestionNetwork connection status checking Pin
Tony Kurishunkal14-Feb-06 19:42
Tony Kurishunkal14-Feb-06 19:42 
AnswerRe: Network connection status checking Pin
David Crow15-Feb-06 4:09
David Crow15-Feb-06 4:09 
AnswerRe: Network connection status checking Pin
ThatsAlok16-Feb-06 2:33
ThatsAlok16-Feb-06 2:33 
QuestionClient Edge of Progress Bar? Pin
Owner drawn14-Feb-06 19:38
Owner drawn14-Feb-06 19:38 
QuestionRelational Database Pin
moodsey21114-Feb-06 19:27
moodsey21114-Feb-06 19:27 
AnswerRe: Relational Database Pin
Ashutosh_shashi14-Feb-06 19:33
Ashutosh_shashi14-Feb-06 19:33 
GeneralRe: Relational Database Pin
moodsey21114-Feb-06 19:43
moodsey21114-Feb-06 19:43 
GeneralRe: Relational Database Pin
Ashutosh_shashi14-Feb-06 22:11
Ashutosh_shashi14-Feb-06 22:11 
QuestionRe: Relational Database Pin
David Crow15-Feb-06 4:12
David Crow15-Feb-06 4:12 
Questionmemory leak!!!!!! Pin
naguu14-Feb-06 18:39
naguu14-Feb-06 18:39 
AnswerRe: memory leak!!!!!! Pin
namaskaaram14-Feb-06 18:42
namaskaaram14-Feb-06 18:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.