2 Replies - 448 Views - Last Post: 07 January 2016 - 01:33 PM Rate Topic: -----

#1 X.chan  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 02-October 15

Redirecting outputs of Python program to be the inputs of C++ program

Posted 07 January 2016 - 08:19 AM

hello programmers,

as you can see, i need a help in the programming using c++ and python,
I've already write the Python program, but i don't have even small experience in c++ . .:((
I want to redirect the outputs of my Python program to be the inputs of a c++ program.

could any one tell the concept of doing that ?


thanks ...

Is This A Good Question/Topic? 0
  • +

Replies To: Redirecting outputs of Python program to be the inputs of C++ program

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 14038
  • View blog
  • Posts: 56,177
  • Joined: 12-June 08

Re: Redirecting outputs of Python program to be the inputs of C++ program

Posted 07 January 2016 - 08:24 AM

What have you tried? Whave you considered?
Was This Post Helpful? 0
  • +
  • -

#3 project21124  Icon User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 62
  • Joined: 02-February 14

Re: Redirecting outputs of Python program to be the inputs of C++ program

Posted 07 January 2016 - 01:33 PM

You could take the outputs, and call your C++ exe with the python output as command line arguments.

Or, a more noob friendly way would be to store your python outputs in a file, and then use C++ to open that file and scan its contents. Just look up "C++ how to read contents of file", or "C++ how to read arguments from command line".
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1