its all done its all done its all done
Asked
Active
Viewed 48 times
-3
-
1Please post a [MCVE] and format your code – Vittorio Romeo Feb 22 '17 at 15:45
-
2[Find a good beginners book](http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list) and read about *references*. – Some programmer dude Feb 22 '17 at 15:46
-
1Do you know what passing by value and passing by reference are? If not read this: http://stackoverflow.com/questions/373419/whats-the-difference-between-passing-by-reference-vs-passing-by-value – NathanOliver Feb 22 '17 at 15:46
-
https://stackoverflow.com/questions/19827119/c-argument-passing-passed-by-reference – Brandon Feb 22 '17 at 18:32
1 Answers
1
You can change void getinput(string restname,string name, double point)
to
void getinput(string restname,string name, double& point)
JLev
- 695
- 1
- 8
- 27