Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8916517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:15:33+00:00 2026-06-15T05:15:33+00:00

I have a problem related to passing arguments to a C++ compiled executable. The

  • 0

I have a problem related to passing arguments to a C++ compiled executable. The program emulate the behaviour of a particular inference engine: the setup of the engine is load at runtime from an XML file, and then I want to call it from command line with different input values.
The characteristic of the input are:

  • Every time that I call the program, the input structure is different, because the system itself is different.
  • The input is a set of couple {name, value}, one for each part of the system.
  • I have to separate the configuration XML from the input.
  • I call the program from a PHP or Node.js server, since it return a result that I expose to the outside through an API.
  • Input value are obtained from an HTTP post request.

By now I have tried these solutions:

  1. Pass it from the command line ex: “./mysoftware input1 value1 input2 value2 …etc“. A little unconfortable, since I have up to 200 input.
  2. Create a file with all the couples name,value and then call the program that parse the file and then destroy at the end. This is a bottleneck of performance for my API, because at every call I have to create and destruct a file.

Does anyone know a better way to approach this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T05:15:34+00:00Added an answer on June 15, 2026 at 5:15 am

    3. Pass the values to the program via the standard input stream and read them from std::cin inside your C++ program.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem related to an array data which fetched from an external
I'm using EJB3 and I have a problem related to refreshing my EntityManager .
I have a performance problem related to string comparison (in Java). I'm working on
I have problem with my widget related to performance and memory: Issue : My
hello I am having problem related to https:// . I have used FB.getLoginStatus(function(response) function
This is a problem is related to worker role hosted VM. I have a
I have seen some related questions but none focusing on the specific problem I
I have read a lot of related topics here regarding this problem but I
I have a serious performance problem. I have a database with (related to this
I have an application which only supports portrait mode. I'm passing all my arguments

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.