About pointers
Hello guys,
i'm learning C++ and i'm trying all my best to learn.
I have a little problem, here is it
Let's say i want to assign the value of an memory address (let's say a stamina hack)
I put
float * staminaadrs = 100;
but a friend told me that it's
*(float*)staminaadrs = 100;
I'm confused right now =S
I know something is wrong in my code because i'm declaring the adrs, i should not.
Sorry if this problem is "stupid" but i'm trying my best
thx (sorry for my bad english =S)