Solved

cannot pass in a 'string' as an argument

Posted on 2004-08-29
3
217 Views
Last Modified: 2012-05-05
why does it complain that string is unidentified


bool compare(string word) const;

0
Comment
Question by:CBMLude
  • 2
3 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 20 total points
ID: 11927000
Maybe you need to include proper headers at the beginning of your file:

#include <string>
using namespace std;
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 11928119
Have you tried?
0
 

Author Comment

by:CBMLude
ID: 11928933
man... I need to sleep... I don't believe I missed that.

Thank you
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question