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
8 Answers
+ 1
Simon Sauter I want it to ask the user for those things and then print it
+ 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.
+ 1
Simon Sauter No worries, sorry for being a bit rude. Thanks for trying to helping anyways!
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
0
Ah, sorry. As I said I hardly know anything about c++. But I'm sure someone else will be able to help.
0
No problem.
- 2
Could you elaborate on what you mean by "get" the input and output of your code?