Search:

Type: Posts; User: gnewfenix

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,172

    Never mind. Every move to the left is the the...

    Never mind. Every move to the left is the the power of 2. I re-read the tutorial and picked up really fast. Sorry guys XD. Misread things.
  2. Replies
    2
    Views
    2,172

    Bitwise operators

    So I just finished reading the bitwise operators tutorial. I read that using the leftshift operators, one can raise a number to a power.


    [variable]<<[number of places]

    In my code I've done...
  3. Replies
    18
    Views
    2,701

    #include has a function for that called...

    #include <cctype> has a function for that called isdigit(). Here's an example of it.



    if(isdigit(a))
    cout << "digit" << endl;
    else
    cout << "character" << endl;
Results 1 to 3 of 3