how would i get the date in this format? anyone plz :P
how would i get the date in this format? anyone plz :P
depends on the tools you have to use and the input source you are going to use. If you are using std C/C++ look into the time.h file. There are a lot of functions relating to time there. If you are using a GUI, then they frequently use wrapper functions for those in time.h. If you are just getting user input then use strings and concatenation with strcat if you are using std C/C++ or += if you are using std string class.
i will not be using a gui but i will be getting the time from the system and not a user any sugestions?Originally posted by Unregistered
depends on the tools you have to use and the input source you are going to use. If you are using std C/C++ look into the time.h file. There are a lot of functions relating to time there. If you are using a GUI, then they frequently use wrapper functions for those in time.h. If you are just getting user input then use strings and concatenation with strcat if you are using std C/C++ or += if you are using std string class.
Look in your time.h header. I believe asctime() does that, but not sure.
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; }