Guest User

While Loop Chinese

a guest
Oct 4th, 2013
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | None | 0 0
  1. // my program //
  2.  
  3. #include <iostream>
  4. #include <fstream >
  5.  
  6. using namespace std;
  7.  
  8. int x;
  9.  
  10. string name;
  11.  
  12. bool omg() {
  13.    
  14.     for (x = 0; x < 50; x++) while(true){
  15.     ofstream fuckyou;
  16.     fuckyou.open ("fuckyou.txt", ios::app);
  17.     fuckyou << "Fuck you " << name;
  18.     }
  19.  
  20.     cin.get();
  21.     return 0;
  22.    
  23. }
  24.  
  25.  
  26. int main(){
  27.    
  28.     cout << "what the fuck is your name?";
  29.     cin  >> name;
  30.    
  31.     if (name == "Lawrence") cout << "Access Granted!";
  32.    
  33.     else if (name != "Lawrence")  for (x = 0; x < 10; x++ ) cout << "\aFuck you " << name << endl;
  34.    
  35.     omg();
  36.  
  37.  cin.get();
  38.  return 0;
  39.    
  40.    
  41. }
Advertisement
Add Comment
Please, Sign In to add comment