0

How can i print the input and output of this code?

Im practicing on working with classes but I need some help. I’m not exactly sure how to get the input and output of this code. If anybody could help me in the comments that would be very much appreciated thank you. https://code.sololearn.com/cUSkuEg34y70/?ref=app https://code.sololearn.com/cUSkuEg34y70/?ref=app

30th Sep 2021, 7:21 PM
Lugli
Lugli - avatar
8 odpowiedzi
+ 1
Simon Sauter I want it to ask the user for those things and then print it
30th Sep 2021, 7:32 PM
Lugli
Lugli - avatar
+ 1
Simon Sauter of course i know that im not stupid. Thats literally in the start of the class but its different when your working with classes.
30th Sep 2021, 7:39 PM
Lugli
Lugli - avatar
+ 1
Simon Sauter No worries, sorry for being a bit rude. Thanks for trying to helping anyways!
30th Sep 2021, 7:42 PM
Lugli
Lugli - avatar
0
It already does ask for input. As for output I hardly know anything about c++ but I believe you need to use cout. Maybe this helps: https://www.codespeedy.com/cout-and-cin-in-cpp/ https://www.cplusplus.com/doc/tutorial/basic_io/ https://www.tutorialspoint.com/cplusplus/cpp_basic_input_output.htm
30th Sep 2021, 7:37 PM
Simon Sauter
Simon Sauter - avatar
0
Ah, sorry. As I said I hardly know anything about c++. But I'm sure someone else will be able to help.
30th Sep 2021, 7:40 PM
Simon Sauter
Simon Sauter - avatar
0
No problem.
30th Sep 2021, 7:43 PM
Simon Sauter
Simon Sauter - avatar
- 2
Could you elaborate on what you mean by "get" the input and output of your code?
30th Sep 2021, 7:31 PM
Simon Sauter
Simon Sauter - avatar