Search:

Type: Posts; User: ChristopherLowe

Search: Search took 0.07 seconds.

  1. Replies
    7
    Views
    1,327

    Re: decimal to hexadecimal

    The approach is faulty. Hexadecimal is just a way of expressing a number in a different base. It's incorrect to look at a character and return what that character would be in decimal. You need to...
  2. Replies
    7
    Views
    1,327

    Re: decimal to hexadecimal

    Good for you! Trying something then learning from the mistakes and trying something else is the best way to learn :)


    Now you are on the right track! But instead of writing something from...
  3. Replies
    7
    Views
    1,327

    Re: decimal to hexadecimal

    When you find yourself doing this ... stop and think about what you are trying to accomplish. Computers are excellent at repetition and loops are a fundamental concept for all programming languages....
  4. Replies
    7
    Views
    1,327

    Re: decimal to hexadecimal

    char a = A;


    This is attempting to assign the primitive variable a to the value of another variable A. You can define a character literal with the ' symbol.



    char a = 'A';
Results 1 to 4 of 4