I don't think he knows which language he's trying to use. ;)Quote:
Originally Posted by jeromey55
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.
As to guessing the language, it says so in the code!
% abs needed because turing stores reals with a potential small error
you saying this is not found pascal?Quote:
No, its syntax has nothing to pascal, BASIC I would say.
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
See this TuringQuote:
I didn't even know there is a 'turing' language
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. :)
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