Search:

Type: Posts; User: cppn00b

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,627

    I'm storing them as floating point numbers....

    I'm storing them as floating point numbers. Here's a bit of the code:



    class Token
    {
    public:
    virtual float getNumber()=0;
    virtual char getOperator()=0;
    };
  2. Replies
    4
    Views
    1,627

    storing abstract data on a stack?

    I'm trying to write a calculator that gets its input by parsing a single line expression that includes numbers and their operators, like 1+2-3

    The number and operator will both be stored in a...
  3. I see, that makes sense, thanks

    I see, that makes sense, thanks
  4. Thanks, that fixed it, but how come?

    Thanks, that fixed it, but how come?
  5. calling default instead of argument constructor, why?!

    class String
    {
    protected:
    enum {SZ = 80};
    char str[SZ];

    public:
    String() //this is being called from Pstring's else
    {str[0] = '\0';}
Results 1 to 5 of 5