According to this Link
Is it safe to assume you can have multiple classes within a single .cpp, or executable?
Does this also mean there is no limit of classes I can create for one executable or .cpp?
According to this Link
Is it safe to assume you can have multiple classes within a single .cpp, or executable?
Does this also mean there is no limit of classes I can create for one executable or .cpp?
"Hence to fight and conquer in all your battles is not supreme excellence;
supreme excellence consists in breaking the enemy's resistance without fighting."
Art of War Sun Tzu
Yep, that's right, but common practice is to have each class in its own .cpp file with its own associated .h file. Also, if you are gonna have a whole lotta classes, you might wanna put them in a DLL file for easy updating.
Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah
You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie
That's on odd question. For all practical purposes, the answer is yes. Perhaps you could write a test program to 'push it to the limit' by declaring several thousand classes??
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; }