怎么把c#程序转成java?
PHP中文网
PHP中文网 2017-04-17 17:09:47
0
11
1029

一个1000行左右的c#程序中,充斥100多行的goto语句,该怎么改?能直接改为continue to或者break to语句吗?其他还好办。。。。

PHP中文网
PHP中文网

认证0级讲师

reply all(11)
黄舟

If I have time to write a regex, I can modify 100 gotos...

阿神

More than a hundred lines of goto...
I have been writing C# for several years...I have never used goto...(sad)

大家讲道理

Whoever wrote the goto can change it.

大家讲道理

The easiest way is to rewrite it manually

巴扎黑

C# to Java Converter

小葫芦

I can’t work with people who write gotos.

左手右手慢动作

Let alone goto, it is wrong to write more than a hundred lines for a function.

左手右手慢动作

1. Is there documentation for these codes? Is there a specification document? Is there a requirements document?
If there is a specification document, rewrite it according to the specification document. The core algorithm can refer to C#. If there is unsupported syntax, use alternative syntax to implement it (goto is nothing more than used to implement loops, recursions, judgments, etc.)
If there is no specification document, it will be fine if there is a requirement document. Rewrite the specifications according to the requirements document, and then write the program. You can also refer to the C# code.

2. There is no documentation.
Understand the code, then write specification documents, and then develop JAVA.

阿神

It is best to make changes after understanding the code business.

洪涛

Uncouple and reconstruct.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!