سؤال

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