SHARE
TWEET

Untitled

a guest Aug 12th, 2017 117 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifndef EXTREMIST_H_
  2. #define EXTREMIST_H_
  3. #include<iostream>
  4. using namespace std;
  5. int muslims=200;
  6. int christians=500;
  7. int mExtremists=1;
  8. int cExtremists=1;
  9. bool holyWar();
  10.  
  11. class religousExtremist{
  12.     friend bool holyWar();
  13.     bool religion;
  14.     int unfaithfulKilled;
  15.     string favSaying;
  16.     public:
  17.     void kill(){
  18.         cout<<favSaying<<endl;
  19.         unfaithfulKilled++;
  20.         if(religion==1){
  21.             christians--;
  22.         }else if(religion==0){
  23.             muslims--;
  24.         }
  25.     }
  26.  
  27.     void bloodbath(){
  28.         for(int i=0;i<10;i++){
  29.             kill();
  30.         }
  31.     }
  32.     religousExtremist(bool a, int b, string c){
  33.         favSaying=c;
  34.         religion=a;
  35.         if(a==0){
  36.             cExtremists++;
  37.         }else{
  38.             mExtremists++;
  39.         }
  40.         unfaithfulKilled=b;
  41.     }
  42.  
  43.  
  44. };
  45.  
  46. bool holyWar(){
  47.     if(muslims+1/cExtremists+1>christians+1/mExtremists+1){
  48.         return 1;
  49.     }else{
  50.         return 0;
  51.     }
  52. }
  53. #endif EXTREMIST_H_
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top