IT乌吉线-享受生活每一天
博客园
首页
新随笔
新文章
联系
管理
订阅
随笔- 2 文章- 1 评论- 1
2008年6月17日
ReSharper 4.0 for vs08 + 注册码
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日
郁闷的Process
连接.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)
|
编辑
<
2008年8月
>
日
一
二
三
四
五
六
27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
与我联系
发短消息
搜索
常用链接
我的随笔
我的空间
我的短信
我的评论
更多链接
我的参与
我的新闻
最新评论
我的标签
留言簿
给我留言
查看留言
随笔档案
2008年6月 (1)
2008年4月 (1)
最新评论
阅读排行榜
1. ReSharper 4.0 for vs08 + 注册码(184)
2. 郁闷的Process(6)
评论排行榜
1. ReSharper 4.0 for vs08 + 注册码(1)
2. 郁闷的Process(0)