title: Invalid conversion from 'const char*' to 'char'
body: <p>I am currently working on just a miscellaneous Theater Seating program! I am just starting to progress through C++, but I can't figure out this error I keep on getting in my coding. What I am currently trying to code is a way to input "*"s character by character, ultimately to help me build a function to display a seating chart for a movie theater. I am pretty close to finishing the function called readSeating... Though there are some clear problems with it. Usually I can debug my programs pretty efficiently, but I just can't figure this one out. Please take a look at my code, get a feel for my program, and let me have any ideas. Please keep answers somewhat simple; again, I'm no master at C++</p>
  
  <p>P.S.</p>
  
  <p>Sorry for showing the whole code... This is my first post... I didn't really know what to include, what not to; and I wanted people to be able to get a feel for the program by even testing it themselves... Thanks again!</p>
  
  <pre><code>/* 
  * This is a program built by a team of students
  * to help local movie theaters sell tickets
  * 
  * File: main.cpp
  * Author(s):
  *
  * 
  * Created on April 15, 2013, 11:10 AM
  */
  
  
  #include &lt;cstdlib&gt;
  #include &lt;vector&gt;
  #include &lt;string&gt;
  #include &lt;fstream&gt;
  #include &lt;iostream&gt;
  #include &lt;cctype&gt;
  #include &lt;iomanip&gt;
  
  using namespace std;
  
  //Function Prototypes
  void Title_Card();
  void seating_prices();
  void seating_chart();
  void pick_seating();
  void purchase_history();
  void quit();
  void update_file();
  void Show_Menu();
  void is_digit(int&amp;);
  void Admin_Menu();
  void edit_seating_prices();
  void edit_seating();
  void quit_to_original();
  void purchase_history_admin();
  
  int readSeating (char, vector&lt;char&gt;&amp;); //Reads SeatingChart.txt
  int readPrices(string, vector&lt;double&gt;&amp;); //Reads SeatingPrices.txt
  vector&lt;double&gt; prices(15); //For SeatPrices.txt
  vector&lt;char&gt; seating(450); //For SeatingChart.txt
  
  
  
  //Actual Program
  int main() {
  Title_Card(); //Calls Title Page
  
  readSeating("SeatingChart.txt", seating); //Reads SeatingChart.txt
  readPrices("SeatPrices.txt", prices); //Reads SeatPrices.txt
  Show_Menu(); //Shows Introductory Menu
  
  system ("pause");
  return 0;
  }
  
  
  
  
  //**************************************************************
  // Definition of the ShowMenu function. Shows introductory menu*
  // and controls where user ends up in the program.             *
  //**************************************************************
  
  
  void Show_Menu() {
  int choice;
  string password;
  
    cout &lt;&lt; "Welcome to the our theater program! Made for a person" &lt;&lt; endl;
    cout &lt;&lt; "who is looking for seating, purchasing a ticket, and" &lt;&lt; endl;
    cout &lt;&lt; "searching for other miscellaneous things... We hope" &lt;&lt; endl;
    cout &lt;&lt; "you enjoy the program!" &lt;&lt; endl &lt;&lt; endl;
    cout &lt;&lt; "Below is a list of options the user can choose from:" &lt;&lt; endl &lt;&lt; endl;
    cout &lt;&lt; "1.\tSeating Prices" &lt;&lt; endl;
    cout &lt;&lt; "2.\tPick Seating" &lt;&lt; endl;
    cout &lt;&lt; "3.\tPurchase History" &lt;&lt; endl;
    cout &lt;&lt; "4.\tQuit" &lt;&lt; endl &lt;&lt; endl;
    cout &lt;&lt; "Enter a choice... (1-4): ";
    cin &gt;&gt; choice;
  
    //Secret Administrator Access
    if (choice == 219){
       system ("cls");
       cout &lt;&lt; "Enter the administrator password: ";
       cin &gt;&gt; password;
  
       if (password == "sterilegorilla")
          Admin_Menu();
       else {
          system ("cls");
          Show_Menu();
            }
    } 
  
    is_digit(choice);//is_digit function doesn't work atm
  
  
    while (choice &lt; 1 || choice &gt; 4){
          cout &lt;&lt; endl &lt;&lt; "You have entered an invalid choice!" &lt;&lt; endl;
          cout &lt;&lt; "Enter a choice... (1-4): ";
          cin &gt;&gt; choice;
          is_digit(choice); //is_digit function doesn't work atm
              if (choice == 219){
                 system ("cls");
                 cout &lt;&lt; "Enter the administrator password: ";
                 cin &gt;&gt; password;
  
                     if (password == "sterilegorilla")
                        Admin_Menu(); 
  
                        else {
                             system ("cls");
                             Show_Menu();
                             }     
                             }
       }
  
    switch (choice) {
           case 1:
                seating_prices();
  
           case 2:
                pick_seating();
  
           case 3:
                purchase_history();
  
           case 4:
                quit();
                }
  
  }
  
  
  
  
  
  //**************************************************************
  // Definition of the seating_prices function. Displays to the  *
  // user, SeatPrices.txt                                        *
  //**************************************************************
  
  
  void seating_prices(){
  system ("cls");
  cout &lt;&lt; "The Current Seating Prices Are:" &lt;&lt; endl &lt;&lt; endl;
  for (int count = 0; count &lt; 4; count++){
  cout &lt;&lt; " " &lt;&lt; setprecision(4) &lt;&lt; showpoint &lt;&lt;  prices[count] &lt;&lt; " | Row " &lt;&lt; (count + 1) &lt;&lt;                         endl;
  }
  for (int count = 4; count &lt; prices.size(); count++){
  cout &lt;&lt; "  " &lt;&lt; setprecision(3) &lt;&lt; showpoint &lt;&lt;  prices[count] &lt;&lt; " | Row " &lt;&lt; (count + 1) &lt;&lt; endl;
  }
  cout &lt;&lt; endl;
  system ("pause");
  system ("cls");
  Show_Menu();
  }
  
  
  
  
  //**************************************************************
  // Definition of the pick_seating function. Displays the       *
  // current seating chart and allows the user to pick their seat*
  //**************************************************************
  
  
  void pick_seating(){  //Not Finished
  system ("cls");
  int row_choice;
  int seat_choice;
  
  cout &lt;&lt; "The Current Seating Chart Is:" &lt;&lt; endl;
  
   //Display Seating Chart
  
  
  
   //Picking your seat
  cout &lt;&lt; "Enter the row number you would like to be in (1-15): ";             
  cin &gt;&gt; row_choice;
  while (row_choice &lt; 1 || row_choice &gt; 15){
        cout &lt;&lt; endl &lt;&lt; "You have entered an invalid row number!" &lt;&lt; endl;
        cout &lt;&lt; "Enter the row number you would like to be in (1-15): ";
        cin &gt;&gt; row_choice;
        }
  
  cout &lt;&lt; "Enter the seat number you would like to have (1-30): ";
  cin &gt;&gt; seat_choice;
  while (seat_choice &lt; 1 || seat_choice &gt; 30){
        cout &lt;&lt; endl &lt;&lt; "You have entered an invalid seat number!" &lt;&lt; endl;
        cout &lt;&lt; "Enter the seat number you would like to have (1-30): ";
        cin &gt;&gt; seat_choice;
        }
  
  cout &lt;&lt; "Congratulations! You have picked your seat!" &lt;&lt; endl &lt;&lt; endl;
  system ("pause");
  system ("cls");
  Show_Menu();
  }
  
  
  
  
  //**************************************************************
  // Definition of the purchase_history function. Displays the   *
  // current the total sum of all movie ticket purchases         *
  //**************************************************************
  
  
  void purchase_history(){         //Not finished
   system ("cls");
   system ("pause");
   system ("cls");
   Show_Menu();
  }
  
  
  
  //**************************************************************
  // Definition of the quit function. Allows the user to quit the*
  // program entirely                                            *
  //**************************************************************
  
  
  void quit(){
   update_file();
   exit(0);
   }
  
  
  
  //**************************************************************
  // Definition of the is_digit function. Designed to make it    *
  // possible to enter only integers when asked for integers     *
  //**************************************************************
  
  
  
  void is_digit(int &amp; input){      //Not working atm
   if (isdigit(input)){
       return;
       }
   if (isalpha(input)){
       cout &lt;&lt; endl &lt;&lt; "You have entered an invalid data type!" &lt;&lt; endl;
       cout &lt;&lt; "Enter a choice... (1-4): ";
       cin &gt;&gt; input;
       }
   if (isspace(input)){
       cout &lt;&lt; endl &lt;&lt; "You have entered an invalid data type!" &lt;&lt; endl;
       cout &lt;&lt; "Enter a choice... (1-4): ";
       cin &gt;&gt; input;
       }    
   }
  
  
  
  
  //**************************************************************
  // Definition of the update_file function. Designed to update  *
  // the seating chart upon leaving the pick_seating function    *
  //**************************************************************
  
  
  
  void update_file(){  //Not finished
  
   //This function is supposed to
   //Update the seating chart
   //upon exit of the pick_seating function
   }
  
  
  
  
  //**************************************************************
  // Definition of the Admin_Menu function. Displays the         *
  // administrator-based menu if user knows the code and password*
  //**************************************************************
  
  
  void Admin_Menu(){
  
    system ("cls");
    int choice = 0;
  
    cout &lt;&lt; "Hello! This is the administrator version";
    cout &lt;&lt; endl &lt;&lt; "of the theatre program; mainly used for editing purposes." &lt;&lt; endl &lt;&lt; endl;
    cout &lt;&lt; "Below is a list of options the administrator can choose from:" &lt;&lt; endl &lt;&lt; endl;
    cout &lt;&lt; "1.\tEdit Seating Prices" &lt;&lt; endl;
    cout &lt;&lt; "2.\tEdit Seating" &lt;&lt; endl;
    cout &lt;&lt; "3.\tPurchase History" &lt;&lt; endl;
    cout &lt;&lt; "4.\tQuit to Original" &lt;&lt; endl;
    cout &lt;&lt; "5.\tQuit Program" &lt;&lt; endl &lt;&lt; endl;
    cout &lt;&lt; "Enter a choice... (1-5): ";
    cin &gt;&gt; choice;
  
          while (choice &lt; 1 || choice &gt; 5){
          cout &lt;&lt; endl &lt;&lt; "You have entered an invalid choice!" &lt;&lt; endl;
          cout &lt;&lt; "Enter a choice... (1-5): ";
          cin &gt;&gt; choice;
          }
  
    switch (choice) {
           case 1:
                edit_seating_prices();
  
           case 2:
                edit_seating();
  
           case 3:
                purchase_history_admin();
  
           case 4:
                quit_to_original();
  
           case 5:
                quit();
           }
    }
  
  
  
  //**************************************************************
  // Definition of the edit_seating function. Administrator-only *
  // function to edit the seating chart                          *
  //**************************************************************
  
  
  
  void edit_seating(){             //Not finished
   system ("cls");
   system ("pause");
   system ("cls");
   Admin_Menu();
   } 
  
  
  
  //**************************************************************
  // Definition of the edit_seating function. Administrator-only *
  // function to edit the prices of the seats.                   *
  // This will in turn, overwrite SeatPrices.txt                 *
  //**************************************************************
  
  
  
  void edit_seating_prices(){    //Not finished
   system ("cls");
   system ("pause");
   system ("cls");
   Admin_Menu();
   }
  
  
  
  //**************************************************************
  // Definition of the purchase_history_admin function.          *
  // Administrator-only function designed to show admin the      *
  // total sum of ticket sales... NOT EDITABLE                   *
  //**************************************************************
  
  
  void purchase_history_admin(){
   system ("cls");
   system ("pause");
   system ("cls");
   Admin_Menu();
   }
  
  
  
  //**************************************************************
  // Definition of the quit_to_original function. Administrator- *
  // only function designed to return admin to original program  *
  //**************************************************************
  
  
  void quit_to_original(){
   system ("cls");
   Show_Menu();
   }
  
  
  
  
  //**************************************************************
  // Definition of the read_file function. Reads SeatPrices.txt  *
  // and stores the pre-determined prices into a vector named    *
  // prices.                                                     *
  //**************************************************************
  
  
  
  int readPrices(string myFile, vector&lt;double&gt;&amp; vect) {
  
  //input file
  ifstream SeatPrices;                   
  
  SeatPrices.open(myFile.c_str());
  
  
  //if file cannot be found
  if (!SeatPrices) 
  cout &lt;&lt; "Cannot find the file!" &lt;&lt; endl;
  
  
  for (int index = 0; index &lt; vect.size(); index++){
      SeatPrices &gt;&gt; vect[index];   //Reading the file "SeatPrices.txt"
      }
  
  SeatPrices.close();  //Closes the file
  return 0;
  }
  
  
  
  
  //**************************************************************
  // Definition of the readSeating function. Reads a text file   *
  // with a seating chart in it.                                 *
  //**************************************************************
  
  
  
  int readSeating(char myFile, vector&lt;char&gt;&amp; vect){           //Not EVEN CLOSE TO FINISHING
  
  
  //input file
  ifstream SeatingChart;
  SeatingChart.open(myFile);
  
  //if file cannot be found
  if (!SeatingChart)
  cout &lt;&lt; "Cannot find the file!" &lt;&lt; endl;
  
  for (int index = 0; index &lt; vect.size(); index++){
      SeatingChart &gt;&gt; vect[index];  //Reading the file "SeatingChart.txt"
      }
  
  SeatingChart.close(); //Closes the file
  return 0;
  }
  
  
  
  
  
  
  
  
  //**************************************************************
  // Definition of the Title_Card function. Starts the program   *
  // with a title card, showing a little introductory title      *
  //**************************************************************
  
  
  void Title_Card(){
   cout &lt;&lt; endl &lt;&lt; endl &lt;&lt; endl &lt;&lt; endl;
   cout &lt;&lt; "\t\t" &lt;&lt; "************************************************\n";
   cout &lt;&lt; "\t\t" &lt;&lt; "*               THEATER SEATING!               *\n";
   cout &lt;&lt; "\t\t" &lt;&lt; "*                                              *\n";
   cout &lt;&lt; "\t\t" &lt;&lt; "*     A program created by a team of three     *\n";
   cout &lt;&lt; "\t\t" &lt;&lt; "*     students to help small theaters sell     *\n";
   cout &lt;&lt; "\t\t" &lt;&lt; "*                 more tickets                 *\n";
   cout &lt;&lt; "\t\t" &lt;&lt; "*                                              *\n";
   cout &lt;&lt; "\t\t" &lt;&lt; "*              Team of Students:               *\n";
   cout &lt;&lt; "\t\t" &lt;&lt; "*                                              *\n";
   cout &lt;&lt; "\t\t" &lt;&lt; "*                *************                 *\n";
   cout &lt;&lt; "\t\t" &lt;&lt; "*                 ***********                  *\n";
   cout &lt;&lt; "\t\t" &lt;&lt; "*                *************                 *\n";
   cout &lt;&lt; "\t\t" &lt;&lt; "*                                              *\n";
   cout &lt;&lt; "\t\t" &lt;&lt; "************************************************\n";
   cout &lt;&lt; endl &lt;&lt; endl;
   system ("pause");
   system ("cls");
   }
  </code></pre>