0

I want to pass a string array to the function like this int function (string text[]) . But the IntelliSense says that identifier string is undefined . Why can't I pass a string array like usually I do with int arrays ?

Sam379
  • 271
  • 2
  • 4
  • 13

1 Answers1

2

Are you using std::string or just string? Try adding using std::string if you don't have it in your code.

austin
  • 5,778
  • 2
  • 30
  • 39