doing one of the challenges and I'm a little confused.
I got the correct output after much tinkering but I'm not 100% sure how. I'm changing some of the stuff so it's not exactly the same and doesn't come up on google. void toPuppys(); void toPuppys(int dogs) { cin >> dogs; cout << dogs * 60; } int main() { toPuppys(1) ; return 0; } I was stuck on this for a minute. I knew what I wanted to do and how to do it. I'm just unsure as to why it worked specifically int main() { toPuppys(1) ; return 0; this part. for a while I had toPuppys(int dogs) ; and that didn't work and I was having issues on where to put the Cin >> dogs; in the code so I was messing around with it and I would get the right output if I removed the cin completely and used toPuppys(1) toPuppys(2) etc but I needed user input so I finally figured out I was putting cin in the wrong place and moved it to the void toPuppys(int dogs) { cin >> dogs; cout << dogs * 60; and it worked, but I had noticed I had left the int main() { toPuppys(1) ; return 0; as it was when I was using toPuppys(1) ; as my input. which is where I'm confused now. it works if I leave the 1 but if I leave it blank the program fails. I guess I just need this explained if any of this makes sense.