0
Shouldnt the name in the void function somehow be initialized as a string type?
Is the name as a string initialization not required in classes somehow?
3 ответов
+ 4
Could you elaborate more. Void will return nothing, but when declaring it has to be in the: void functionName parameters body format.
void justOutput(string x){
cout << "I hope this helps " << x;
}
justOutput("you.");
0
if you are talking about the actual name of the function then no. That is taken care of by the compiler.
0
the string is initialized in the private part