Frage im Vorstellungsgespräch bei Samsara

write command line parser cmd -v -p --foo=bar

Antwort im Vorstellungsgespräch

Anonym

16. Feb. 2024

It took me time to understand his requirement. Suggested to make a class arg; parse the vector of strings to assign elements of args respective values. use substr and cmp. Was able to demo working code.