Hi there,
I'm VERY new to C++ so bear with me on this.
I'm trying to write a program that asks the user for 5 friends names, and the program will randomly select which one to text. The problem occurs when I call the "getRandomName" function on line 33, the error message says:
"error: conversion from 'std::string*' to non-scalar type 'std::string' requested"
I'm not sure what this error message means. I know I am calling a function whose data type is string and the return type is string, but I don't see how this is a problem for the compiler.
Anyways, this is a homework question for my first programming class so I am not looking for the exact answer but any tips would be greatly appreciated!