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?

23rd Feb 2017, 10:27 PM
Dino Luinovic
Dino Luinovic - avatar
3 Réponses
+ 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.");
23rd Feb 2017, 11:00 PM
Mark Foxx
Mark Foxx - avatar
0
if you are talking about the actual name of the function then no. That is taken care of by the compiler.
23rd Feb 2017, 10:58 PM
Jason Hoffman
Jason Hoffman - avatar
0
the string is initialized in the private part
29th Jun 2017, 5:54 PM
Edgar