帮助简单程序... [英] Help With Simple Program...

查看:65
本文介绍了帮助简单程序...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我有一个相当简单的问题。我必须编写一个程序的代码。程序已经完成,我有可执行文件和所有,我唯一需要的是源代码(在C中)。问题是,我真的不知道该怎么做。


所有程序都会在灯亮或亮时告诉你。它有四个开关和一个电池。如果只有一个开关打开,则指示灯熄灭。如果四个开关的任意组合(如果两个开启),则指示灯亮。有人可以帮我从可执行文件中取出代码吗?


要使程序正常工作,你必须在MSDOS中打开它并输入程序名称(demoTL01)然后告诉它的开关的号码......所以例如:


demoTL01 1


告诉程序只有第一个开关打开,关灯。


demoTL01 1 2

告诉程序前两个开关打开,使得点亮。


等...


这是(如果你需要,请先扫描)请右键点击并保存为它:


http://www.angelfire.com/wrestling3/roleplays0/demoTL01.exe


谢谢!!!

Hello everyone,

I have a problem with a rather simple thing. I have to make the code of a program. The program is already made, I have the executable and all, the only thing I need is the source code(in C). The problem is, I don''t really know how to do it.

All the program does is tell you when a light is on or off. It has four switches and a battery. If only one switch is on, then the light is off. If any combination of the four switches(if two are on), then the light is ON. Can somebody help me taking out the code from the executable?

To make the program work, you have to open it in MSDOS and type the name of the program(demoTL01) and then the number of the switch to tell it''s on... so for example:

demoTL01 1

Tells the program that only the first switch is on, making the light off.

demoTL01 1 2

Tells the program that the first two switch are on, making the light on.

Etc..

Here it is(if you want it, scan it first) and please right click and save as it:

http://www.angelfire.com/wrestling3/roleplays0/demoTL01.exe

THANKS!!!

推荐答案

您对代码中的特定部分有疑问吗?您应该发布可执行文件的源代码或您的任务,而不是要求我们下载.exe。你试过解决这个问题吗?到目前为止你完成了什么?如果你做好了准备并且首先尝试解决问题,那么你很可能会在以后得到别人的帮助。
Do you have a question about a particular section in your code? You should post the source code for the executible or what your assignment is and not ask us to download an .exe. Have you tried to solve this yet? What have you accomplished so far? If you are better prepared and have tried to solve your problem first then it is more likely you will get help from someone later.



Do您对代码中的特定部分有疑问?您应该发布可执行文件的源代码或您的任务,而不是要求我们下载.exe。你试过解决这个问题吗?到目前为止你做了什么?如果你做好了准备并且首先尝试解决问题,那么你很可能会在以后得到某人的帮助。
Do you have a question about a particular section in your code? You should post the source code for the executible or what your assignment is and not ask us to download an .exe. Have you tried to solve this yet? What have you accomplished so far? If you are better prepared and have tried to solve your problem first then it is more likely you will get help from someone later.



这就是我需要的东西:来自该可执行文件的源代码或复制同样东西的方法。问题是我甚至不知道从哪里开始。所以我需要你们的帮助。


谢谢!

That''s what I need: the source code from that executable or a way to replicate that same thing. The problem is I don''t even know where to start. So I need help from you guys.

Thanks!



这就是什么我需要:来自该可执行文件的源代码或复制相同内容的方法。问题是我甚至不知道从哪里开始。所以我需要你们的帮助。


谢谢!
That''s what I need: the source code from that executable or a way to replicate that same thing. The problem is I don''t even know where to start. So I need help from you guys.

Thanks!



如果有办法将可执行文件重新形成源代码,我会做到但却不存在。

如果我错了,
纠正我。

如果以某种方式可以将可执行文件恢复为源代码,请告诉我。

:-)

来自

Nick

If there is a way to form an executable file back into source code, I would have done it but yet it dont exist.

correct me if i''m wrong.
If somehow can make an executable file back into source code, please tell me.
:-)

from
Nick


这篇关于帮助简单程序...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆