Computer Science Canada help wiht simple turing calculator (exe to code ?) |
Author: | kousha41564 [ Mon Dec 08, 2008 3:57 pm ] | ||
Post subject: | help wiht simple turing calculator (exe to code ?) | ||
hi i am new to turing , and sometimes when i am searching the net i see great programs. the only way i learned to start programing wiht turing was the fact taht i knew HTML and Basic. both are kinda similar so i just used my former knowledge to learn turing. but sometimes i wanna do somethign adn i have no idea how to go at it. then i find a great program whihc does what i want, i would love to study it, and learn how the person used the code. but apperently turing exe files are not viewable as code . so is there a way to turn exe into code ? if not, i am making a calculator currently and all i got is somehting that requires you to put spaces between each part of the calculatiopn i.e 2 + 2 , and it can only accept two variebles and + - * / . could anyone help me on this one ? to make a more advanced calculator ?
please dont hate on it since its the first program i wrote :S. so if anyone could help me get over the add spaces between each part of the equation thing , i would be happy. also how do i make it so it does more tahn just 2 variebles at a time? TY |
Author: | andrew. [ Mon Dec 08, 2008 4:12 pm ] |
Post subject: | RE:help wiht simple turing calculator (exe to code ?) |
You can't get the source code from an EXE for Turing or any other programming language. Once it's compiled, it's done. About your program, you use multiple variables for different things. What if you just had one variable that was a string and the use enters in the whole equation. Then you use string manipulation to separate the numbers from the operations. Just look up string manipulation in the Turing Walkthrough. |
Author: | gitoxa [ Mon Dec 08, 2008 4:18 pm ] | ||
Post subject: | RE:help wiht simple turing calculator (exe to code ?) | ||
That gets an entire line in turing into one variable, as opposed to just one word |