How to retrieving variable value in C++ if you know the variable address

前端 未结 5 1684
别那么骄傲
别那么骄傲 2021-01-23 05:50

Greetings,

I have recently started to code in C++ and have come across a problem to which I was unable to find the answer, so I thought maybe somebody e

5条回答
  •  不思量自难忘°
    2021-01-23 06:12

    It is possible, but it is OS-specific (there is no common C support for it). In general, your second program needs to have the permission that debugger has, and use the same kind of OS calls that a debugger uses.

提交回复
热议问题