applet - call c++ exe from java -
I'm trying to call java applet to c ++ exe. For this purpose, I am using ProcessorBiller. My code is as follows
ProcessorBB = new process builder (s); Process process = pb.start (); Final InputStream = process.getInputStream (); OutputStream Out = process.getOutputStream (); Print Vector PW = new printritter (new buffer ventricle (new output stream water (out)); Pw.println (1); Pw.println (1 + "" +2); New thread (new runnable) {public zero run} {try {BufferedReader br = new BufferedReader (new InputStreamReader) string line; while ((line = br.readline ()) = null {Out.println (line) ;}} Hold (java.io.IOException e) {}}}. Start (); pw.close ();
C ++ looks like this when XE starts
- Find a short path to S.
- Find the associated path
- from the lowest distance of S. (1 + beta) to S. Find the path associated with the S within.
- Please input Input Command (1-4):
Once U input command, for example 1 we get
Please separate the input and T, by space:
Then you enter two numbers and you will get a network .
As long as I am able to get it, please input the input and t, separate with space: after it does not display anything.
Help!
Thank you.
pw.println (1 + "" +2) ;
This string sends 12
, no 1 2
. ""
is a zero-length string.
Comments
Post a Comment