I need help with pro problem 6.2 in c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I need help with pro problem 6.2 in c++

No matter what I try I cant figure this out anyone who can give me the answer so I can see where I'm going wrong would be greatly appreciated

26th Aug 2021, 4:49 PM
Antonio Dickey
9 Answers
+ 4
Antonio Dickey , have a look at that small tutorial from sololearn, which demonstrates the swapping of variable content. https://www.sololearn.com/learn/CSharp/2693/?ref=app i am sure that you can solve this task by yourself! happy coding and good success!
26th Aug 2021, 5:01 PM
Lothar
Lothar - avatar
+ 1
you need to post the question here since not everyone can access it and your attempt here
26th Aug 2021, 4:50 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
+ 1
Where do I find the tutorial?
26th Aug 2021, 5:02 PM
Antonio Dickey
+ 1
and if you didn't get it from Lothar(since he posted in another language which you aren't learning here) there's one dirty trick. just swap the two variables where they print out since the test cases compare the code's output. like, just swap aqalex to aqDavid and vice versa in the cout
26th Aug 2021, 5:15 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
+ 1
I will try the answers provided but if someone has the sololearn pro and worked on c++ I would appreciate your answer to variables 6.2 pro question
26th Aug 2021, 9:39 PM
Antonio Dickey
0
Ok thanks
26th Aug 2021, 4:50 PM
Antonio Dickey
0
David and Alex each have aquariums. There are 8 Rainbowfishes in David’s aquarium, and 11 Angelfishes in Alex’s aquarium. Help them exchange their fishes between them. Complete the code to swap the values of variables between aquariumDavid and aquariumAlex.
26th Aug 2021, 4:51 PM
Antonio Dickey
0
Sorry I found it
26th Aug 2021, 5:03 PM
Antonio Dickey
0
I don't want to be a nuisance but all of the solutions presented to me seem like they have nothing to do with the previous lesson before the problem im stuck on? How am I supposed to figure it out when I wasn't shown in the lesson before the problem?
26th Aug 2021, 9:38 PM
Antonio Dickey