Badly placed ()'s error
Hello I'm using c++ with embedded SQL trying to receive command line arguments as SQL statements.
For instance I want to be able to do: ./a.out proceedings(foo#bar)
and tokenize the argument into: proceedings
, foo
, and bar
with #
, (
, and )
as delimiters.
Anyways, I was just wondering if there is a way to use brackets in the argument because I receive Ba开发者_运维技巧dly placed ()'s
as an error.
Nevermind, I've learned that I can use quotation marks in the command line which wont give me the error.
精彩评论