Search:

Type: Posts; User: philuk2000

Search: Search took 0.00 seconds.

  1. Very impressive y99q, Thinking about it the...

    Very impressive y99q,

    Thinking about it the question was way out of scope and context for that chapter in the book!

    Thank you though - you proved the difficulty of this and drove me from...
  2. :D I have not even got to functions in the book...

    :D I have not even got to functions in the book yet - other than main. I think we'll agree that the question in the book is worded badly - I actually think it's more likely asking for 5 raised to...
  3. OK i appreciate your comments. I have written...

    OK i appreciate your comments. I have written the question exactly as it is in the book and have not missed anything significant that I have communicated here. Earlier in the chapter I had to use <<...
  4. Thanks CommonTater, I got the book on the...

    Thanks CommonTater,

    I got the book on the recommendation of this site (cprogramming.com) :-) but the question is still valid, although I also questioned to myself if it was a mistake before you...
  5. OK folks! both of you thanks for the info. Let...

    OK folks! both of you thanks for the info. Let me give a little more background because you both come up with something but I cannot use either.

    The exercise is from a C programming book called...
  6. Editied

    Sorry I made a mistake in the original post

    Five to the first power of 2 is 25. Not 5
    Five to the second power of 2 is 125. Not 25
  7. Using a bitwise operators to raise to the power of 5

    I'm assigned a programming task in c where I need to use bitwise operators to raise 5 to the nth power of 2 and i'm struggling a little I cannot use loops or the pow function!

    The output needs to...
  8. Replies
    22
    Views
    5,101

    I found the solution as a FAQ linked below. I...

    I found the solution as a FAQ linked below. I should have declared ch as an int not a char.

    Question 12.1

    Thanks
  9. Replies
    22
    Views
    5,101

    Simple while loop - Windows 7

    I am learning C using C for dummies 2nd Edition. I'm using codeblocks 10.05 with mingw (GCC) on Windows 7 Ultimate (64bit).

    When I compile and run the code below on Windows XP everything works as...
Results 1 to 9 of 9