11 Sep
2009
11 Sep
'09
11:33 p.m.
AMDG yaoyansi wrote:
i use boost::program_options to parse cmd line parameters.
Attachment has my code.
And here is my test: tst.exe --wav c:/Program Files/Microsoft/a.wav --words "Hi, how are you?" --d "so,\ may\ be."
the output is : wav:[c:/Program ] words:["Hi, ] d:["so,\ ] -------------------------------------------------- But, I want the result to be : wav:[c:/Program Files/Microsoft/a.wav ]
words:[Hi, how are you?]
d:[so, may be. ]
What should I do now?
You should quote arguments containing a space. I notice that you've already quoted some of the other arguments. In Christ, Steven Watanabe