I'm using the ideone online interpreter (http://ideone.com/) to test some C++ and Python programs. How do I specify the command line arguments instead of using the STDIN input?
相关问题
- how to define constructor for Python's new Nam
- Sorting 3 numbers without branching [closed]
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- How to compile C++ code in GDB?
In python you can hardcode like this:
This will output:
To read from stdin:
Looks like you can't, but a quick hack should do the trick:
Or convert the standard input into args:
Just initialize to simulate the command line arguments