How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • Go back-and-forth until satisfied
    Rate the answer you receive.
Ask Techie_Ben Your Own Question
Techie_Ben
Techie_Ben, Computer Software Engineer
Category: Programming
Satisfied Customers: 3104
Experience:  Years of professional experience in Python, C++, Visual Basic, .NET, Java, DB2, Oracle, SQL Server, PL/SQL
8287049
Type Your Programming Question Here...
Techie_Ben is online now

I'd like to know how to escape the '&' character for the

Customer Question

I'd like to know how to escape the '&' character for the system() function (windows.h) in C++? I've tried '\&', '\\&', '&&', '&&&', '\"&\"'. I can work around it using a batch file but I'd really like to know how to do it using the system() function?
Submitted: 21 days ago.
Category: Programming
Expert:  Techie_Ben replied 21 days ago.
Hello, and thank you for the question. Sorry to hear about the issue you’re having. The following should work from a system call:\\&\Please let me know if you have any questions. Thanks again!
Customer: replied 21 days ago.
Sorry, it doesn't.
Customer: replied 21 days ago.
It's ok, I've found the answer.