Thread: Please test my calculator prog

  1. #31
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    nah, I think Brinkster is better -- NO ADS! WOOHOO!

  2. #32
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    Originally posted by face_master
    This is better than the crappy calculator I wrote when I started C++... Good job!
    Thanks. How far did u get on yours? *Trig functions, calc functions, etc...*

    EDIT> I have a Brinkster account also, but I want PHP *I dunno how to use ASP scripts* I might make my brinkster site a mirror though. No Ad's is better, you're right on that part.
    Last edited by Quantrizi; 10-05-2002 at 05:29 PM.

  3. #33
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    mine was basically the same as yours except all it had was the basic * / + - operations (i'm too lazy to write out the words so I use operators )

  4. #34
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    Originally posted by face_master
    mine was basically the same as yours except all it had was the basic * / + - operations (i'm too lazy to write out the words so I use operators )
    Kool. I was planning on the basic 4, but decided to make it more.

  5. #35
    Registered User red_baron's Avatar
    Join Date
    May 2002
    Posts
    274
    that rhymes lol
    ¿Red Baron?

    "Imagination is more important than knowledge"
    -Albert Einstein (1879-1955)

    Check out my games!

    [code] /* dont forget code tags! */ [/code]

  6. #36
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    Hey, you're right! *lol*. Didn't realize that till now...kewl! If anyone knows how to do the operators for the string thing, I'd greatly appreciate any help. I have an idea on it, but I don't think it'll be the right way.

  7. #37
    Registered User red_baron's Avatar
    Join Date
    May 2002
    Posts
    274
    well you can make it a character array, like char input [100];
    hmm first check all the values of the array to make sure they are only numbers and operations, then
    check the value of array if its a number go to next value if its one of the operators then take the first number call it like num[0] then put the operator as operator[0] then check the next value of array and so on till you finish, then just check for multiply operators first multiply the equivilatn operator value of array from num with the value beside it,,, umm let me give u an example

    lets say operator[9] is multiply then you have to multiply num[9] with num[9+1],
    then bring all the values of the arrays one down... like:
    operatior[9] is now equal to operator[10] and so on gotta do same with the num array. thats a lot of loopin'

    well thats the best way i know of doin it, it might not be the easiest or best but its somethin.
    ¿Red Baron?

    "Imagination is more important than knowledge"
    -Albert Einstein (1879-1955)

    Check out my games!

    [code] /* dont forget code tags! */ [/code]

  8. #38
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    Ok, thnx. I'll start work on that tomorrow, or maybe tonight, or whatever...heh

  9. #39
    Registered User red_baron's Avatar
    Join Date
    May 2002
    Posts
    274
    lol you reply fast, i post leave for 10 sec come back and you've posted already! well i g2g now, been on the board all day lol
    ¿Red Baron?

    "Imagination is more important than knowledge"
    -Albert Einstein (1879-1955)

    Check out my games!

    [code] /* dont forget code tags! */ [/code]

  10. #40
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    I got "E-mail notification" checked, heh. I've been coding practically all day, peace.

  11. #41
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    Greatest day of all for me! I figured out how to do proportion calculations! It may be a little rusty, but hell, I'm the first!!!!

    Here it is, and just for this grand day (well, night where I live), it'll be version 2.0.0!

  12. #42
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    Fixed a few things, changed a few things. read the "readme.txt" file fore the exact info on what has been modified/deleted. This is version 2.0.1

  13. #43
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    If you would be willing to do some trig functions in your calculator that would be great. I was going to do it the other day after school for myself, but I thought nah I'm too lazy. The only reason why I was going to do it is because I don't have a graphing calculator. Although, I could download a T189 ROM or something like that. Better yet do it the old fashioned way, which is actually pretty simple.

  14. #44
    x4000 Ruski's Avatar
    Join Date
    Jun 2002
    Location
    Outer Space!
    Posts
    542
    The calculator is fine.. but maybe you should add options in the main menu using up and down keys (like when choosing the OS when you got more than 1 installed on the sys) or at least use getch(); so that the user doesn't have to press enter after his choice (main menu).. The rest is fine good job
    what does signature stand for?

  15. #45
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    it says in your readme that you really hate Microsoft's calculator. Whats wrong with it??

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Integer Emulation
    By Elysia in forum C++ Programming
    Replies: 31
    Last Post: 03-18-2008, 01:03 PM
  2. undefined reference
    By 3saul in forum Linux Programming
    Replies: 12
    Last Post: 08-23-2006, 05:28 PM
  3. C++ Operator Overloading help
    By Bartosz in forum C++ Programming
    Replies: 2
    Last Post: 08-17-2005, 12:55 PM
  4. MSVC Template Constructor/Assignment Errors
    By LuckY in forum Windows Programming
    Replies: 3
    Last Post: 07-22-2005, 02:57 PM
  5. Why is my program freezing?
    By ShadowMetis in forum Windows Programming
    Replies: 8
    Last Post: 08-20-2004, 03:20 PM