Share your repls and programming experiences

← Back to all posts
C++ and Python Teamwork!
DynamicSquid (4899)

[...]

So, the code I have here - What is does is you enter something in, and it will put your input in a text file using C++. And then it'll use Python to read it!!!

Using C++ for input, and Python for output! This is like the best thing I've made!

For example, as your input, you could type in something like this:

Hello World!
Hi World!
It works! Yay!
END

Then this should be your output:

C++ program ends
Python program starts

Hello World!
Hi World!
It works! Yay!

Notice how you can enter as many lines as you want, and when you're done, just enter "END" to finish the input process.

Also special thanks to:

@SPQR
@Bookie0
@CodeMonkey51

For helping me with this project.

Anyways, enjoy :)

Comments
hotnewtop
DynamicSquid (4899)

@ChezCoder

input
  |
  |
  V
 C++ ---> text file
              |
              |
              V
            Python ---> output
ChezCoder (1606)

@DynamicSquid my brain's not working today XD

DynamicSquid (4899)

@ChezCoder lol. so basically I get the input with C++, but display the output using python