Closed jakobsteinke closed 1 month ago
Thanks for the answer! "A way is to use a current arg as a double for a current arguemnt and boolean flag", could you elaborate on this? (In the homework it was possible to just use a bool flag outside the loop, but as I am only allowed to fill out the todos, that approach doesn't work anymore)
The purpose of the problem was to determine if you can implement the homework task without using a boolean flag. The idea is to embed the information that indicates whether the opening single quote has occurred into one of the existing variables (both current_arg
and args
can be used for this). There are various ways to embed this information, which I will leave up to you. The code should later remove the embedded information to return the correct results.
Related Issue
-
Googling Result
-
ChatGPT Result
-
Your question here
Hello, I have some questions regarding the midterm:
This code compiles but fails at runtime, so would the answer be true?
is true correct?
is true correct?
is false correct?
How can we solve this without using a bool flag that indicates whether or not an opening single quote occurred (since we can only edit the todo part)? Thanks in advance! (Sorry for the amount of questions)