Thread: empty character constant error

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    12

    empty character constant error

    Can someone tell me what this error means and how can I fix it. I know it has to be something simple that I am overlooking. I have included the part of my program that contains the error:

    Code:
    void NameFind(string carName[], string workOrder[], string mechanic[], int count, char let)
    {
    	int a;
    	int b=0;
    	cout << "\nCars with last name beginning with" << let << ":\n";
    
    	for(a=0; a<count; ++a)
    	{
    		if(carName[a].find(toupper(let)) ==0)
    		{
    			cout << "\nCar name:" << carName[a] << '' << "Work order:" << workOrder[a] << '' << "Mechanic:" <<mechanic[a];//error appears in this line????
    			++b;
    		}
    	}
    	if(b==0)
    		cout << "There are no cars whose last name begins with " << let <<". \n";
    }

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    try replacing ' ' with " "
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Quantum Random Bit Generator
    By shawnt in forum C++ Programming
    Replies: 62
    Last Post: 06-18-2008, 10:17 AM
  2. Getting other processes class names
    By Hawkin in forum Windows Programming
    Replies: 3
    Last Post: 03-20-2008, 04:02 PM
  3. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  4. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  5. UNICODE and GET_STATE
    By Registered in forum C++ Programming
    Replies: 1
    Last Post: 07-15-2002, 03:23 PM