0

Best method for converting a problem to C++ code?

29th Oct 2021, 1:34 AM
sharlot
sharlot - avatar
2 Answers
+ 4
I suppose what you're really asking is the best method to represent a solution to a problem in terms of code? Usually, what you do is you determine the required input(s) and expected output first. It's easier put things together to form your program when the expectations of the end goal is clear.
29th Oct 2021, 2:03 AM
Fermi
Fermi - avatar
+ 3
This question seems irrelevant. Completing 97% of the C++ course, you should have already known that. There is no best way to convert a problem to C++ code. You just make a C++ code that solves your problem, and find it's efficiency to compare with other methods of solving it. And why do you want upvotes? If this question is just to get a batch, then it's not allowed so delete this question =)
29th Oct 2021, 2:03 AM
Rishi
Rishi - avatar