title: no operator matches || these operands
body: <p>Hi im having trouble with an if statement in C++. When I compile my code I get an error stating " no operator "||" matches these operands". Any guesses? The project is a small text based game I'm creating in visual studio. </p>
  
  <pre><code>#include "stdafx.h"
  #include &lt;iostream&gt;
  #include &lt;iomanip&gt;
  #include &lt;string&gt;
  #include &lt;cmath&gt;
  #include &lt;fstream&gt;
  
  using namespace std;
  
  //Prototypes
  void introScreen(int);
  string characterCreation(string);
  
  
  
  int choice;
  string characterName, wepon1, wepon2, bow, sword, mace;
  
  const string sword = sword;
  const string bow = bow;
  const string mace = mace;
  
  // Functions 
  
  int main()
  {
      introScreen(choice);
  
      return 0;
  }
  
  
  void introScreen(int choice)
  {
  
      cout &lt;&lt; "----------------------------------------\n"
          &lt;&lt; "Welcome to the arena!\n"
          &lt;&lt; "Select a menu option\n"
          &lt;&lt; "-----------------------------------------\n"
          &lt;&lt; "1. New Game\n"
          &lt;&lt; "2. Load\n"
          &lt;&lt; "3. Exit\n\n"
          &lt;&lt; "Enter your desired number ";
      cin &gt;&gt; choice;
  
      if (choice == 1)
          characterCreation(characterName);
      else
          if (choice == 2)
              exit(0);
          else
              if (choice == 3)
                  exit(1);
  
  }
  
  
  string characterCreation(string characterName,string wepon1,string wepon2, const string bow, const string sword, const string mace)
  {
  
      cout &lt;&lt; "Welcome to the character creation menu!\n"
          &lt;&lt; "Enter your name\n"
          &lt;&lt; "Name: ";
      cin.ignore();
      getline(cin, characterName);
  
      ofstream loadFile("Save.txt");
      loadFile &lt;&lt; characterName &lt;&lt; endl;
  
      cout &lt;&lt; "\nEnter 2 wepons\n"
          &lt;&lt; "Wepon list\n\n"
          &lt;&lt; "Sword\n"
          &lt;&lt; "Mace\n"
          &lt;&lt; "Bow\n";
      cin &gt;&gt; wepon1, wepon2;
  
      if (wepon1 || wepon2 != bow || sword || mace)
      {
          cout &lt;&lt; "\n\nThose wepons are invalid! Enter new ones\n";
          cout &lt;&lt; "\nEnter 2 wepons\n"
              &lt;&lt; "Wepon list\n\n"
              &lt;&lt; "sword\n"
              &lt;&lt; "mace\n"
              &lt;&lt; "bow\n";
          cin &gt;&gt; wepon1, wepon2;
      }
  
      loadFile &lt;&lt; wepon1 &lt;&lt; endl
          &lt;&lt; wepon2 &lt;&lt; endl;
  
  
      return characerName;
  }
  </code></pre>