Advertisement
rdsedmundo

Class Pseudo

Jun 20th, 2014
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.90 KB | None | 0 0
  1. #include <cstdio>
  2. #include <cstdlib>
  3. #include <cstring>
  4. #include <string>
  5. #include <ctime>
  6. #include <utility>
  7. #include <algorithm>
  8. #include <queue>
  9. #include <stack>
  10. #include <cmath>
  11. #include <iostream>
  12. #include <sstream>
  13.  
  14. using namespace std;
  15.  
  16. #define CONSTANT_OF_PSEUDO (5*(20+1*2*3-4+5-22))
  17. #define pp printf
  18.  
  19. typedef enum {False, True} Boolean;
  20.  
  21. class Falsificacao {
  22. public:
  23.     Boolean falso;
  24.     string pica;
  25.     clock_t init;
  26.  
  27.     inline void initPseudo(string who_is_pseudo = "Pseudo") {
  28.         this->init = clock();
  29.         this->falso = False;
  30.         this->pica  = who_is_pseudo;
  31.         pp("Pseudo init.\n@@@\n\n");
  32.     }
  33. } Pseudo;
  34.  
  35. int main(int argc, char * argv[]) {
  36.  
  37.     do {
  38.         Pseudo.initPseudo();
  39.  
  40.         int count = 0;
  41.         while(++count <= 1<<CONSTANT_OF_PSEUDO)
  42.             continue;
  43.  
  44.         clock_t end = clock() - Pseudo.init;
  45.         pp("PROPAGATION_OF_PSEUDO: %ld\n", end);
  46.     } while (Pseudo.falso == True);
  47.  
  48.     return 0;
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement