How to convert Python to C++?
Hello, I need to convert a Python file ( Well, I will download Sprint's Pythonish file ) to a C++ one. How to do that? Also,
That's kinda like asking "how can I make a dog out of a set of human bones?". Sure you might be able to do it, but it'd be a whole lot easier if you had a set of dog bones (i.e. just re-writing your program in C++).
What is your end goal?
OK, I will rewrite to C++.
What about speaking?! Workaround this:
import pyttsx3 as sprintspeech engine = sprintspeech.init() rate = engine.setProperty("rate", 180) print("Current rate: " + rate) engine.say("Hi. I am PyAssis.") # Then I won't use Sprint instead of another fake one, I surely not make, or maybe I will ( <<:P) engine.runAndWait()
Look for other libraries that might handle that for you.
Answer my question though, why do you want to do this? You might be able to avoid all of that if converting to C++ isn't your best option.