hello everyone..
please answer me , if you can give me working code
I thought about something...
I know that everything in our machines have addresses..
I thought about watching everything in my computer's random access memory(RAM)
But I don't want to see the information in view of garbage , I mean there are hundreds of thousands of processes, bits there(I want to make them char if it is possible and see texts)...
In addition I have to say that I want to see everything (no matter what it is) in char type
Somethings came to my RAM (mind)
So I wrote a simple code(C++) I got a pointer of variable of int *p
and in loop I wrote
//don't forget(int i = 0)//
while(true){
std::cout << x[i++]<< '\n';
sleep(1);//declared in <unistd.h>
}
I thought about bool and int
that bool takes only one bit -> but how am I going to make char from one bit
that int takes 4 bits -> I think there are a lot of problems
I wrote something like this and it showed me 0 or big numgers like 3879278398 or -436346346
I thought of using chars and strings, even I tried <sstream> to make that numbers text..
but even if that numbers are texts ... they are still numbers (not word or something like that)
That is interesting if I write "if" and tell if to take only ASCII coded numbers 256<n<0
what would happen .. I have idea, but I don't know how to make real it.
thank you very much