Hi
i have wrote a program that creates objects of another class in the class it self, and I want to be able to save data to the objects I have created, from the class that created them. How can I do this?
THank You
Hi
i have wrote a program that creates objects of another class in the class it self, and I want to be able to save data to the objects I have created, from the class that created them. How can I do this?
THank You
The same way you would do it anywhere else -- using the methods of the class that you created. (Perhaps you put parameters in the constructor, perhaps using setThis, or setThat, or whatever.)
By 'save', I assume you mean 'save as a file'?
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; }