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 !
Type: Posts; User: ggraz
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 !
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...
I see the mistake , thank you . Let me get back to correcting this.
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: %x\n",...
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 ?...
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...
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 ,...
Sorry.......... (Programming all day is starting to get to me ! ), your right ...................I have to put the rest of the steps together.
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...
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);
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...
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...
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...
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...
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...
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...
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...
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...
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" ...
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 !
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...
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...