• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 230
  • Last Modified:

cannot pass in a 'string' as an argument

why does it complain that string is unidentified


bool compare(string word) const;

0
CBMLude
Asked:
CBMLude
  • 2
1 Solution
 
Jaime OlivaresSoftware ArchitectCommented:
Maybe you need to include proper headers at the beginning of your file:

#include <string>
using namespace std;
0
 
Jaime OlivaresSoftware ArchitectCommented:
Have you tried?
0
 
CBMLudeAuthor Commented:
man... I need to sleep... I don't believe I missed that.

Thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now