2008年6月17日
ReSharper 4.0 for vs08

注册码:(感谢园子的人提供)
User Name: Larry P Kallenbach
License Key: DvBoMpofkyh1Y6UfR9ldRosLJzoHYpTx
posted @ 2008-06-17 08:01 IT乌吉线 阅读(184) | 评论 (1)编辑
  2008年4月12日
连接.class的代码

        public void Go()
        
{
            String Info 
= "";
            Process q 
= new Process();
            q.StartInfo.WorkingDirectory 
= Path;
            q.StartInfo.FileName 
= "java.exe";
            q.StartInfo.Arguments 
= FileName;
            q.StartInfo.UseShellExecute 
= false;
            q.StartInfo.RedirectStandardInput 
= true;
            q.StartInfo.RedirectStandardOutput 
= true;
            q.StartInfo.CreateNoWindow 
= true;
            q.Start();
            
            
while (!q.HasExited)
            
{
                
while (q.StandardOutput.Peek() != -1)
                
{
                    Info 
+= "\n " + q.StandardOutput.ReadLine(); 
                }

                ShareInfo.output 
= Info; 

                
if(q.HasExited)
                
{
                    
break;
                }

                q.
                
string info = string.Empty;
                
while (info == string.Empty)
                
{
                    
while (ShareInfo.IsKeyDown)
                    
{
                        info 
= ShareInfo.info;
                    }

                }

                
if (info != string.Empty)
                
{
                    q.StandardInput.WriteLine(info);
                }

            }

            ShareInfo.Isend 
= true;
        }


java代码:
public class Myuse {

    
public static void main(String args[])
    
{
        
//Scanner ip = new Scanner(System.in);
        System.out.println("input your name:");
        String name 
= "he";//ip.next();
        System.out.println("input your Lover:");
             String lover 
= "he";//ip.next();
        System.out.println(name + ","+ lover+" you  two make for each other");
        
    }

}

///////////////////////////////////////////////////
在调试模式下一切正常,但是非调试状态下一团糟.总是打印:input your name.
posted @ 2008-04-12 10:51 IT乌吉线 阅读(6) | 评论 (0)编辑