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

  1. Find a short path to S.
  2. Find the associated path
  3. from the lowest distance of S. (1 + beta) to S. Find the path associated with the S within.
  4. 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

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -