EOSERV Forum > Lounge > Calculator Release(Updated)
Topic is locked.
Page: << 1 2 >>
Calculator Release(Updated)
Author Message
Post #87047 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

13 years, 50 weeks ago
Post #87048 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?
13 years, 50 weeks ago
Post #87063 Re: Calculator Release.
DanScott posted: (8th Jul 2011 06:13 pm)

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?


C++ and ye xD I know I'm going to try to make it like that.
13 years, 50 weeks ago
Post #87064 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
};
13 years, 50 weeks ago
Post #87067 Re: Calculator Release.

Good job kaylinz.

13 years, 50 weeks ago
Post #87073 Re: Calculator Release.
ethanmoffat posted: (8th Jul 2011 07:22 pm)

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; basicallycodingin 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.

What is that programmed in and I will add a exit option as well.

13 years, 50 weeks ago
Post #87074 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
13 years, 50 weeks ago
Post #87078 Re: Calculator Release.


MMMM Brains!!!!

13 years, 50 weeks ago
Post #87079 Re: Calculator Release(Updated)
Kaylinz posted: (8th Jul 2011 08:07 pm)

ethanmoffat posted: (8th Jul 2011 07:22 pm)

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; basicallycodinginlong 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.

What is that programmed in and I will add a exit option as well.

C++

---
class EOSERV {
Programmer | Oldbie
Open source EO Client: https://github.com/ethanmoffat/EndlessClient
};
13 years, 50 weeks ago
Post #87080 Re: Calculator Release(Updated)
bone posted: (8th Jul 2011 09:17 pm)


MMMM Brains!!!!

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.
13 years, 50 weeks ago
Post #87084 Re: Calculator Release(Updated)

thats pro.

---
IM BACK FROM THE DEAD THE ZOMBIE RETURNS!
13 years, 50 weeks ago
Post #87088 Re: Calculator Release(Updated)


O kaylinz must you always be a dink head. Fuckin dry up already. Assmunch.

13 years, 50 weeks ago
Post #87094 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?

13 years, 50 weeks ago
Post #87095 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
};
13 years, 50 weeks ago
Post #87126 Re: Calculator Release(Updated)

I'm trying to make one in python currently.

13 years, 50 weeks ago
Page: << 1 2 >>
Topic is locked.
EOSERV Forum > Lounge > Calculator Release(Updated)