简体   繁体   English

错误放置()的错误

[英]Badly placed ()'s error

Hello I'm using c++ with embedded SQL trying to receive command line arguments as SQL statements. 您好,我将c ++与嵌入式SQL结合使用,试图将命令行参数作为SQL语句接收。

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. 比如我希望能够做到: ./a.out proceedings(foo#bar)和令牌化参数为: proceedingsfoo ,和bar#()作为分隔符。

Anyways, I was just wondering if there is a way to use brackets in the argument because I receive Badly placed ()'s as an error. 无论如何,我只是想知道是否有一种方法可以在参数中使用方括号,因为我收到错误地Badly placed ()'s

没关系,我了解到我可以在命令行中使用引号,但不会出现错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM