kellex

Mine Bot c++

Oct 24th, 2014
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.83 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. #include <cstdlib> //Random number
  5.  
  6. using namespace std;
  7.  
  8. int main(){
  9.     string input;
  10.     string answer;
  11.     int v0,v1;
  12.  
  13.     string sample[10]={"Hello","How are you?","Whats your name?","I dont give a fuck","Well thats intersting","Oh really?","Will you do it?","Favorite Color?","Dogs Name?","Where will you go?"};
  14.     string question[10]={"How are you?","Whats your favorite food?","What do you think about dogs?","Where do you want to live?","Are you serious?","What would you do?","What does potato mean?","What are you doing with your life?"," "," "};
  15.  
  16.     string list[1]={sample,quesion};
  17.  
  18.     cout << "Hello!\n";
  19.     a:
  20.     v0=rand() % 1;
  21.     v1=rand() % 10;
  22.     cin >> input;
  23.     if(input=="exit"){
  24.         goto exit;
  25.     }
  26.     cout << list[v0] << endl;
  27.     //v1=NULL;
  28.     goto a;
  29.  
  30.     exit:
  31.  
  32.     srand(time(NULL));
  33.     return 0;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment