Hexadecimal Blues!!!!

Please support our C++ advertiser: Intel Parallel Studio Home
Closed Thread

Join Date: Jul 2009
Posts: 17
Reputation: ayan2587 is an unknown quantity at this point 
Solved Threads: 0
ayan2587 ayan2587 is offline Offline
Newbie Poster

Hexadecimal Blues!!!!

 
0
  #1
Oct 5th, 2009
hi Guyz...
need some help here...
i want to input an integer but it can be either in hexadecimal form or in integer form.
the problem is that i would like to store that input in that particular form and separate all hexadecimal values in to an array.

for ex: if input is 0x3ff24e, then i want to create an array that stores the values 3,f,f,2,4,e in a an array of 6 variables.

now the problem is, as soon as i input the above number it gets converted into decimal form and hence i am unable to create an array of hexadecimal values??
so can someone please guide...
Quick reply to this message  
Join Date: Dec 2008
Posts: 1,175
Reputation: firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice 
Solved Threads: 146
firstPerson's Avatar
firstPerson firstPerson is online now Online
Veteran Poster

Re: Hexadecimal Blues!!!!

 
0
  #2
Oct 5th, 2009
Look at your other post. And don't double post. Be patience.
I give up! 
1) What word becomes shorter if you add a letter to it? [ Solved by : niek_e ]
2) What does this sequence  equal to :  (.5u - .5a)(.5u-.5b)(.5u-.5c) ...
3) What is the 123456789 prime numer?
Ask4Answer
Quick reply to this message  
Join Date: Sep 2009
Posts: 341
Reputation: dkalita will become famous soon enough dkalita will become famous soon enough 
Solved Threads: 50
dkalita's Avatar
dkalita dkalita is offline Offline
Posting Whiz
 
0
  #3
Oct 6th, 2009
Originally Posted by ayan2587 View Post
hi Guyz...
need some help here...
i want to input an integer but it can be either in hexadecimal form or in integer form.
the problem is that i would like to store that input in that particular form and separate all hexadecimal values in to an array.

for ex: if input is 0x3ff24e, then i want to create an array that stores the values 3,f,f,2,4,e in a an array of 6 variables.

now the problem is, as soon as i input the above number it gets converted into decimal form and hence i am unable to create an array of hexadecimal values??
so can someone please guide...
use a char * or string to read user input
Quick reply to this message  
Join Date: Apr 2006
Posts: 5,051
Reputation: John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold 
Solved Threads: 332
Team Colleague
John A's Avatar
John A John A is offline Offline
Vampirical Lurker
 
1
  #4
Oct 6th, 2009
"Technological progress is like an axe in the hands of a pathological criminal."
Quick reply to this message  
Closed Thread

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC