Search:

Type: Posts; User: ggraz

Search: Search took 0.01 seconds.

  1. Thread: "For Loop" Help

    by ggraz
    Replies
    4
    Views
    1,177

    ok, so sorry !! I need not to do these programs...

    ok, so sorry !! I need not to do these programs so late at night !! one question , if I omit i++ , is that considered bad programming layout ? Thanks again for the help !
  2. Thread: "For Loop" Help

    by ggraz
    Replies
    4
    Views
    1,177

    "For Loop" Help

    Hello, I am trying to get the following "for loop" to take the variable "Y' set it to zero , and then increment it in the "for loop" by 3 until Y is > X. So something like X= 12 , y= 3
    I would...
  3. Replies
    6
    Views
    3,739

    I see the mistake , thank you . Let me get back...

    I see the mistake , thank you . Let me get back to correcting this.
  4. Replies
    6
    Views
    3,739

    Right in this section // Purpose is to...

    Right in this section



    // Purpose is to reassemble the floating point number

    unsigned int result = (expSub + 127)<<23 | (addMantissa & 0xfffff) ;
    printf ("This is the addition: &#37;x\n",...
  5. Replies
    6
    Views
    3,739

    OK, I have made some changes to this program but...

    OK, I have made some changes to this program but it is still out putting an incorrect answer ? Am I writing my "if" statement correctly , I think this is where the problem but can not ID it exactly ?...
  6. Replies
    6
    Views
    3,739

    Addition Program - Help

    The following code , should compute two floating point number and return the correct result . That is the problem ......the addition is not correct. I do not see the coding error ? Any suggestions...
  7. Replies
    10
    Views
    8,765

    Ok, I revised this one a-lot , but I think I am...

    Ok, I revised this one a-lot , but I think I am on the right track. Basically I need to do floating point addition using exponents and the mantissas. my desired output is a floating point number ,...
  8. Replies
    10
    Views
    8,765

    Sorry.......... (Programming all day is starting...

    Sorry.......... (Programming all day is starting to get to me ! ), your right ...................I have to put the rest of the steps together.
  9. Replies
    10
    Views
    8,765

    ok, got it ( well not really ) but I will have to...

    ok, got it ( well not really ) but I will have to rethink how I get steps 1 & 2 in the program. I see the logic , just have to put it into the program. Thank you .... .....I will add to this post...
  10. Replies
    10
    Views
    8,765

    ok, I think I see my error , I am not passing...

    ok, I think I see my error , I am not passing along the anything to the following addition wise




    unsigned int result = Dexponent;

    float fresult = *(float*)&result;
    return(fresult);
  11. Replies
    10
    Views
    8,765

    Floating Point Addition

    I am writing a program that does some floating addition that uses bit patterns with shifts applied to the mantissa and such to obtain the sum of the two floating point numbers. Logically and on paper...
  12. Replies
    3
    Views
    1,605

    Ya, I know but it's a lesson using shifting and...

    Ya, I know but it's a lesson using shifting and bitwise operations. I am new to the C language so it's making my life that much more rough. But I love the language , and really what to lean as much...
  13. Replies
    3
    Views
    1,605

    Incorrect use of “For Loop”

    I am trying to limit the user to a max value of +/- 32768 when entering in a value into the program . To accomplish this I have to use a “For Loop” , my issue is I am not using the loop correctly...
  14. Replies
    4
    Views
    1,494

    Bitwise Operator Question/ Suggestion

    I am writing this program that does binary multiplication for signed and unsigned numbers. I can get the program to work when I enter a negative number first but when I enter a negative number for...
  15. Thread: Career Advise

    by ggraz
    Replies
    4
    Views
    3,368

    Career Advise

    Need some advise , I am trying to get my foot into the door per say doing C/C++ programming . I currently do web design and PC support for a smaller company . My question to you would be how did you...
  16. Thread: Pointer Help

    by ggraz
    Replies
    3
    Views
    1,383

    The indexing is off on it . might have something...

    The indexing is off on it . might have something with my printf formatting ?
    I am getting all the data lined up in my first row

    01 00 00 00 where this would be 1
    01 00 00 00 and this is...
  17. Thread: Pointer Help

    by ggraz
    Replies
    3
    Views
    1,383

    Pointer Help

    I am trying to POINT to each byte in an array and pass that info along to the main, thus resulting in each byte being looped. I am getting the correct out put but the index where I need it, is not...
  18. Thread: Shift Function

    by ggraz
    Replies
    3
    Views
    1,276

    Shift Function

    I do not think I am using the "shift" correctly in my program ? I am trying to cycle the bytes so I would get the value of the bit pattern once I shift the bytes. something to the effect :

    01...
  19. Replies
    2
    Views
    2,515

    Bitwise Operator Help

    Hello, I am writing a program that does Multiplication using Bitwise Operation. I can get the following code to compile but keep on getting 229344 for an answer. Also if I just run the "times" ...
  20. Replies
    8
    Views
    4,807

    ok, I see my error ! Thank you so much ! I was...

    ok, I see my error ! Thank you so much ! I was trying to do it with only one loop ! thus the program was giving me fits ! Always learning ! Thank you !
  21. Replies
    8
    Views
    4,807

    Thank you ! Actually on that second part , I...

    Thank you !

    Actually on that second part , I am trying to have the string alternate case , so ..

    user inputs : dog

    the out put would be : DoG

    I cant seem to get it to work in a loop...
  22. Replies
    8
    Views
    4,807

    Convert to ASCII program almost working

    I am programming a program that will convert a string (char) into it's ASCII value, I am having one issue though. The output is correct but I get a value of " 10 " at the end of the output every...
Results 1 to 22 of 22