Which is kind of my point. On one side, we have someone who claims this is supposed to be "rewritten" to C++, and on one hand, we have someone who posts C code.
So we need to make a decision. Is this C? Or is this C++? If it's C, then it shouldn't be here.
The original code looks like pascal, for the most part, whatever it is, surely even an elementary grasp of c would have allowed you to convert the lines, or post an attempt, simply hoiking the code within main() is not going to happen.
Thought for the day:FLTK: "The most fun you can have with your clothes on.""Are you sure your sanity chip is fully screwed in sir?" (Kryten)
Stroustrup:
"If I had thought of it and had some marketing sense every computer and just about any gadget would have had a little 'C++ Inside' sticker on it'"
As to guessing the language, it says so in the code!
% abs needed because turing stores reals with a potential small error
I might be wrong.
Quoted more than 1000 times (I hope).Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
you saying this is not found pascal?No, its syntax has nothing to pascal, BASIC I would say.
var
:=
Those things i remember, from code classes and they are certainly included in the scripting language supported by inno setup
but ye it says turing
Thought for the day:FLTK: "The most fun you can have with your clothes on.""Are you sure your sanity chip is fully screwed in sir?" (Kryten)
Stroustrup:
"If I had thought of it and had some marketing sense every computer and just about any gadget would have had a little 'C++ Inside' sticker on it'"
Last edited by kmdv; 02-23-2011 at 11:13 AM.
See this TuringI didn't even know there is a 'turing' language
Jim
ya im pretty sure it was turing because my firend tried it and it worked in turing and thank you very much sipher
Hey, why all the fuss? He asked for C code, i posted C code. If you disagree just move the thread. Anyway, in whatever language it was in, was easy to understand after all.
Devoted my life to programming...
And it's one less homework assignment jeromey has to worry about failing. Good luck on those tests, though!
it wasnt really a homework assignment it was just a challenbge he put out to use