Posted: Tue Oct 10, 2023 5:04 am Post subject: dumb question about global vs local values
I created a super simple console c++ with just an infinite loop that prints a variable value. I change it per round as I'm planning to write another program to manipulate it. But first I tested with CE to see if I could find the value.
int testval = 1234;
I find it fine when I declare it globally outside main.
If I declare it inside main, I can't scan the value at all.
Is it because it's on the stack now? Or should I be able to scan it still?
I've been using CE a while (my own renamed/compiled 7.0 build), but it never occurred to me that this may be a thing. I suppose games (albeit few if any) with local variable use may be harder to target then.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum