| Author | Message | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| Calculator Release(Updated)
Well I got very bored and decided to make this and I doubt it would help anyone anytime xD. This program basically is a calculator which can Add,Multiply, and Divide. Just because some newbs don't look in the syntax.txt here is what basically is written in it: When it asks you to choose a operation this is what you do: 1 = Add 2 = Multiply 3 = Divide So.. just comment and tell me what should be added and what should be taken out of it. Also the new release contains console text color and letter control. Binary: HERE
|
| Re: Calculator Release.
Command line calculators ftl. If you're going to do command line calculator you'll want to do character recognition to find '*' to declare multiplication and '/' for division and thing's like that, like a proper IDE calculation syntax xD.. VB would have been a better choice to code a calculator ;p but good effort none the less.. Just out of interest what is it coded in? --- If money doesn't grow on trees, then why do banks have branches?
|
| Re: Calculator Release.
DanScott posted: (8th Jul 2011 06:13 pm) C++ and ye xD I know I'm going to try to make it like that.
|
| Re: Calculator Release.
You should also include an option that allows someone to exit the program (press q to quit). One of my labs in my data structures course asked us to create a class for a "long integer", which contained a dynamically allocated array in which each slot in the array was one digit of the long integer. We then had to write operator overloads for addition and multiplication; basically coding in long addition and long multiplication. You could always give that a try if you want, if you're not using c++ it will be a lot easier since you probably won't be using pointers. http://ethanmoffat.web44.net/download/lab01.rar - here is the binary. I did this for a class so the output is only there to demonstrate that everything works properly. ---
class EOSERV {
Programmer | Oldbie
Open source EO Client: https://github.com/ethanmoffat/EndlessClient
};
|
| Re: Calculator Release.
Good job kaylinz.
|
| Re: Calculator Release.
ethanmoffat posted: (8th Jul 2011 07:22 pm)What is that programmed in and I will add a exit option as well.
|
| Re: Calculator Release.
Google RPN and then try making a RPN parser and you pretty much have a calculator. I made one in C# and I should transfer it to C++. --- http://www.addipop.com
|
| Re: Calculator Release.
|
| Re: Calculator Release(Updated)
Kaylinz posted: (8th Jul 2011 08:07 pm)C++ethanmoffat posted: (8th Jul 2011 07:22 pm)What is that programmed in and I will add a exit option as well. ---
class EOSERV {
Programmer | Oldbie
Open source EO Client: https://github.com/ethanmoffat/EndlessClient
};
|
| Re: Calculator Release(Updated)
bone posted: (8th Jul 2011 09:17 pm)Thanks for the input "cool guy" and I think you should give your thanks I'm helping you pass the first grade with this application.
|
| Re: Calculator Release(Updated)
thats pro. --- IM BACK FROM THE DEAD THE ZOMBIE RETURNS!
|
| Re: Calculator Release(Updated)
|
| Re: Calculator Release(Updated)
Well I updated my first post. Also two things. 1. I tryed making the 'n' option: if( choice == 'n') { exit(0); }//is this right? 2. Should I make it so you can change the color of the console from the syntax log?
|
| Re: Calculator Release(Updated)
If you're working from main, it's just as easy to use a return statement. ---
class EOSERV {
Programmer | Oldbie
Open source EO Client: https://github.com/ethanmoffat/EndlessClient
};
| |

