Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. memory comparison

memory comparison

Scheduled Pinned Locked Moved C / C++ / MFC
performancequestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tongc
    wrote on last edited by
    #1

    Hi! The following values, which are greater front = 0x003223d8 front->next = 0x00323118 Thanks, i have not clue which one is greater nor what they means! The only thing i know is that they are virtual address of a process. !! Another thing is if i take front->next - front what does it give me??? Thanks

    I N M 3 Replies Last reply
    0
    • T tongc

      Hi! The following values, which are greater front = 0x003223d8 front->next = 0x00323118 Thanks, i have not clue which one is greater nor what they means! The only thing i know is that they are virtual address of a process. !! Another thing is if i take front->next - front what does it give me??? Thanks

      I Offline
      I Offline
      includeh10
      wrote on last edited by
      #2

      the numbers are too complicated: if u ask 1 and 3, which is "greater", i know the answer. front->next - front is really meaningless except u do special research. don't stick on those kind problems when u start to learn c++, or u will get lost. includeh10

      N 1 Reply Last reply
      0
      • T tongc

        Hi! The following values, which are greater front = 0x003223d8 front->next = 0x00323118 Thanks, i have not clue which one is greater nor what they means! The only thing i know is that they are virtual address of a process. !! Another thing is if i take front->next - front what does it give me??? Thanks

        N Offline
        N Offline
        Nish Nishant
        wrote on last edited by
        #3

        Looks like you have a linked list and they are all addresses. front is the address to the front of the list prolly, and front->next points to the next node. Subtracting them would give you a meaningless number! Nish


        Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

        1 Reply Last reply
        0
        • I includeh10

          the numbers are too complicated: if u ask 1 and 3, which is "greater", i know the answer. front->next - front is really meaningless except u do special research. don't stick on those kind problems when u start to learn c++, or u will get lost. includeh10

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #4

          includeh10 wrote: the numbers are too complicated Not really, they are 32 bit addresses, that's all! Nish


          Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

          1 Reply Last reply
          0
          • T tongc

            Hi! The following values, which are greater front = 0x003223d8 front->next = 0x00323118 Thanks, i have not clue which one is greater nor what they means! The only thing i know is that they are virtual address of a process. !! Another thing is if i take front->next - front what does it give me??? Thanks

            M Offline
            M Offline
            Michael Dunn
            wrote on last edited by
            #5

            Those are hexadecimal numbers, base 16. That is what the 0x prefix means. Each digit can be 0-9 or a-f, where a-f represent decimal 10-15. So 3223d8 is less than 323118. --Mike-- "I'd rather you just give me a fish today, because even if you teach me how to fish, I won't do it. I'm lazy." -- Nish Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups