Click here to Skip to main content
15,922,145 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I am in DLL Hell.. :( Pin
Rick York9-Jan-03 15:15
mveRick York9-Jan-03 15:15 
GeneralRe: I am in DLL Hell.. :( Pin
VanHlebar9-Jan-03 16:43
VanHlebar9-Jan-03 16:43 
GeneralRe: I am in DLL Hell.. :( Pin
Chris Richardson9-Jan-03 17:57
Chris Richardson9-Jan-03 17:57 
GeneralRe: I am in DLL Hell.. :( Pin
Rickard Andersson209-Jan-03 21:45
Rickard Andersson209-Jan-03 21:45 
GeneralRe: I am in DLL Hell.. :( Pin
Rick York10-Jan-03 5:41
mveRick York10-Jan-03 5:41 
QuestionWhat is OLE object? Pin
E_LISE_LI9-Jan-03 14:10
E_LISE_LI9-Jan-03 14:10 
AnswerRe: What is OLE object? Pin
Michael Dunn9-Jan-03 14:30
sitebuilderMichael Dunn9-Jan-03 14:30 
Generalrepost Numbers won't display in HEX when using string class Pin
Perseus9-Jan-03 13:07
Perseus9-Jan-03 13:07 
Can someone please help!!
When I try and displays numbers in hex using the setf(ios::hex) member function of the cout stream class with the string class header defined the numbers do not display in HEX.
the following code works and the number display correctly in hex

#include <iostream.h>
//#include <string>

//using namespace std;

int main()
{
int x = 0xff;

cout<<x<<endl;
cout.setf(ios::hex);
cout<<x<<endl;

return 0;
}

but when i try this the number does not display in hex

#include <iostream>
#include <string>

using namespace std;

int main()
{
int x = 0xff;

cout<<x<<endl;
cout.setf(ios::hex);
cout<<x<<endl;

return 0;
}

Can someone please explain???

thanks
-perseus
GeneralRe: repost Numbers won't display in HEX when using string class Pin
Michael Dunn9-Jan-03 14:32
sitebuilderMichael Dunn9-Jan-03 14:32 
GeneralRe: repost Numbers won't display in HEX when using string class Pin
Perseus9-Jan-03 14:41
Perseus9-Jan-03 14:41 
GeneralResource for resources Pin
Aaron Schaefer9-Jan-03 12:09
Aaron Schaefer9-Jan-03 12:09 
GeneralRe: Resource for resources Pin
Taka Muraoka9-Jan-03 12:34
Taka Muraoka9-Jan-03 12:34 
GeneralRe: Resource for resources Pin
Aaron Schaefer9-Jan-03 12:35
Aaron Schaefer9-Jan-03 12:35 
GeneralSplash Screen, title and icon Pin
MemLeak9-Jan-03 10:59
MemLeak9-Jan-03 10:59 
GeneralRe: Splash Screen, title and icon Pin
super9-Jan-03 19:12
professionalsuper9-Jan-03 19:12 
QuestionMemory problems? or not? Pin
jimNLX9-Jan-03 10:30
jimNLX9-Jan-03 10:30 
AnswerRe: Memory problems? or not? Pin
Alvaro Mendez9-Jan-03 10:59
Alvaro Mendez9-Jan-03 10:59 
GeneralCall an executable Pin
sumod9-Jan-03 9:30
sumod9-Jan-03 9:30 
GeneralRe: Call an executable Pin
Alvaro Mendez9-Jan-03 9:40
Alvaro Mendez9-Jan-03 9:40 
Generali Still in Trouble! plz Help me to release Pin
Alex H 19839-Jan-03 8:59
Alex H 19839-Jan-03 8:59 
GeneralRe: i Still in Trouble! plz Help me to release Pin
l a u r e n9-Jan-03 9:06
l a u r e n9-Jan-03 9:06 
GeneralRe: i Still in Trouble! plz Help me to release Pin
Alex H 19839-Jan-03 9:28
Alex H 19839-Jan-03 9:28 
GeneralRe: i Still in Trouble! plz Help me to release Pin
l a u r e n9-Jan-03 9:36
l a u r e n9-Jan-03 9:36 
GeneralRe: i Still in Trouble! plz Help me to release Pin
l a u r e n9-Jan-03 9:41
l a u r e n9-Jan-03 9:41 
GeneralRe: i Still in Trouble! plz Help me to release Pin
Alex H 19839-Jan-03 9:52
Alex H 19839-Jan-03 9:52 

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.