Search:
Forum
Beginners
Don't understand "&" after string
Don't understand "&" after string
Jun 23, 2013 at 8:49pm UTC
HarryNewgas
(4)
In creating this function, what does the &guessword part mean? Thanks
int
letterFill (
char
guess, string secretword, string &guessword)
Jun 23, 2013 at 9:16pm UTC
Chervil
(7320)
It means the parameter
guessword
is passed by reference, rather than by value.
I take it you read part 1 of the tutorial. Now it's time for part 2
http://www.cplusplus.com/doc/tutorial/functions2/
Jun 23, 2013 at 9:20pm UTC
HarryNewgas
(4)
Thanks, I'll try to understand it :D
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs