Search:

Type: Posts; User: manasij7479

Search: Search took 0.03 seconds.

  1. Replies
    10
    Views
    1,770

    no..I was actually reading the substring from the...

    no..I was actually reading the substring from the stream directly into a floating point variable and assuming that if that read failed , the part is not a number....but '+' somehow manages to arrive...
  2. Replies
    10
    Views
    1,770

    Does isdigit() work with floating points? ...

    Does isdigit() work with floating points?
    Consider the String entered:
    sin 48.8 + cos 30

    When I pass the input through the stringstream, and it is in the second iteration...would isdigit()...
  3. Replies
    10
    Views
    1,770

    but that applies to every character that can be...

    but that applies to every character that can be entered....not only '+'...
  4. Replies
    10
    Views
    1,770

    oo...Got the solution....apparently...it was...

    oo...Got the solution....apparently...it was bypassing the whole part and entering an if block above which had a condition of being a number to enter.......Why is + being treated as a number more...
  5. Replies
    10
    Views
    1,770

    Switch-case not responding to operators

    switch (s)
    {

    case '+':std::cout<<"D";break;
    case 'c':std::cout<<"D";break;

    }


    This sounds somewhat...
Results 1 to 5 of 5