Hey everyone, me again. I'm learning more about calling functions and pass by references this week in my class. For this program, it's supposed to show 10500 and 11000 for the raises. I can get the first one to show up, but not the second one. I thought it was because they shared a variable, so I tried to change that. But now it won't even get past the input with salary1 on line 17. If I take it out, it works up until the tenPercentRaise portion of the code, thus outputting a 0 (since salary1 doesn't get a value since I have to take it out). Any ideas on what's going on?
I got it after messing around with it for a bit. I found out you cant string cin together like that, so I just set salary1 equal to salary after input was stored for salary.