Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: JGSH
  • Content: Threads
  • Order by date
  1. JGSH

    Find Median

    Hi all, Does anyone know a good algorithm(good runtime) to find the median of n values? Thank you, Jon
  2. JGSH

    ENDIANESS

    hey all, If my machine is a different endianess from the file I'm reading, how do I go about switching the bytes? Ex: machine = little endian file = big endian file 0001 If i read this file normally, as an unsigned int, then I will come up with the value 4, because it will read it as 0100. I...
  3. JGSH

    Algorithm to print out "memory addresses"

    Hi, I need help on an algorithm that will help me print out memory addresses per line. It will be up to 7 hex digits. So it will basically print out... 0000000 0000010 0000020 etc 00000f0 0000100 all the way to fffffff thanks, Jon
  4. JGSH

    Binary EOF

    hi, I'm trying to read a binary file 1 byte at a time using the get() function. I am doing this in a while loop, and supposed the file is ABC. The program runs through the loop four times instead of only 3. How can I fix this so that it ends after it reads the C ? I'm currently using...
  5. JGSH

    Convert from character to hex

    Hi all, How can I convert a character to a hexidecimal, then parse each. For example, after it is converted to say... 1E, how can I put 1 into a variable and E into another? Thank you

Part and Inventory Search

Back
Top