How do I get rid of the “Intellisense: no suitable conversion function from ”std::string“ to ”std::string *“ exists” error?
问题 So here's my code, #include <iostream> #include <string> using namespace std; int main() { const int NUM_NAMES = 20; string names [NUM_NAMES] = {"Collins, Bill", "Smith, Bart" , "Allen, Jim", "Griffin, Jim", "Stamey, Marty", "Rose, Geri","Taylor, Terri", "Johnson, Jill", "Allison, Jeff", "Looney, Joe" , "Wolfe, Bill", "Rutherford, Greg", "Javens, Renee","Harrison, Rose","Setzer, Cathy", "Pike, Gordon","Holland, Beth"}; string smallest; int minindex; void displayNames (string[NUM_NAMES], int);