I think C Board could profit by formulating a few rules of conduct.
I think C Board could profit by formulating a few rules of conduct.
Last edited by Ivory348; 01-30-2020 at 09:04 PM.
We have one, though it's embedded in a long thread here
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Personally I'd read the whole line into a string and then parse it. Clearly it can be done character by character and I guess either approach would work. Interestingly, given the string
My implementation outputs:Code:This [is ] a [[string]]
But Structure's implementation outputs:Code:is string
Which is correct? Maybe neither is correct because the problem description seems to lack the details to knowCode:is [string
Stick a fork in it, it's done.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.