Hello all,
I am trying to write a function that enters in a new name for the student name Po, and passing a value instead for that name. I have tried running the code and I keep on getting the error "'setName' cannot be used as a function
setName(name)" I was wondering what I am doing wrong with my code. Here is what I have so far.
I believe the function should be called : s -> setName(name);
s is the name of the student object declared on line 43 Student* s = new Student("Po") so the program needs to know this is the student who's name you want to change and its a pointer so you need to use -> instead of .
let me know if it doesnt work! and ill see if theres anything else i can find.