문제

To add any parameters while running C-Project, we open the configuration and provide arguments under arguments tab.
Now I want to pass the string \"Hello all\" as it is.
It is passed as: "Hello all" the '\' is escaped.
How to avoid this?

도움이 되었습니까?

해결책

Escape the escape characters and the double quotes: \\\"Hello all\\\"

다른 팁

In the Program arguments edit box, enter "\\\"Hello all\\\"". Works for me in Eclipse 3.8.1

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top