Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
Hey, it works ! Thanks Eibro !
Why is there no use for a string of unlimited length ? Say I wanted a 1000 letter password ? I'd put [1000] ?
Eibro's codes compiled and executed fine with my compiler. I'm using Visual Studio 6. Can you write what it does for you, if its not working?
will be there one day!
I usually use VStudio 6!
This latest code from Eibro worked fine on mine this time...
Now !
Can anyone ( if it's not too much to ask, I feel as if I'm asking too much here ) give me an example of a save-game load-game feature in a C++ game ? How do I import the saved options... and later, how do I go on to encrypting the text file so people don't modify stats / money etc. ?
That's where you need to look up bit shifting, and if anyone knows, can someone post a good example, cuz I've been looking for one too.
Stan The Man. Beatles fan
When I was a child,
I spoke as a child,
I thought as a child,
I reasoned as a child.
When I became a man,
I put childish ways behind me"
(the holy bible, Paul, in his first letter to the Cor. 13:11)