Search:

Type: Posts; User: musikluvah

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,280

    understand masking bits

    Hi there,

    I am not quite understanding why the program described at Question11-1 from (Page 169) is working - I am expecting it not to work. Might somebody please explain why.

    The result...
  2. Replies
    2
    Views
    925

    somehting more like this appears to be working. ...

    somehting more like this appears to be working.



    std::cin >> oper_char;

    if ((oper_char == 'q') || (oper_char == 'Q'))
    break;

    std::cin >> value;
  3. Replies
    2
    Views
    925

    more C++ programming guidance

    I am working on example7-6 from O'Reilly's Practical C++ Programming book. I am finding that I need to enter 'q' twice to quit the program, but the code says to me that I should only need to enter...
  4. Replies
    2
    Views
    922

    C++ proggie syntax problem

    Hi there,

    I am reading and entering the code from O'Reilly's Practical C++ Programming book. my g++ is complaining of syntax errors in example 7-1 from chapter 1. Might somebody explain why I am...
  5. coding and mathematics of derivatives and integrals

    I have a C coding project(s) on my plate that is requiring me to understand calculus derivatives and integral equations. Its been a while since I learned this stuff in school and was wondering if...
  6. Replies
    2
    Views
    1,256

    gprof thats it. thank you

    gprof thats it. thank you
  7. Replies
    2
    Views
    1,228

    two different gcc versions found?

    Hi there,

    I admin this FreeBSD machine and for some reason I am finding there are two different gcc versions on the box. Is there any benefit or need for having the different versions?

    ---...
  8. Replies
    2
    Views
    1,256

    calls and processing times

    Hi there,

    I am a bit of a newbie to C Programming and coding on a FreeBSD machine at the moment. I remember an application that could itemize the system calls and processing times of a C program....
  9. Replies
    3
    Views
    14,668

    Brilliant cwr - that is the answer!

    Brilliant cwr - that is the answer!
  10. Replies
    3
    Views
    14,668

    undefined reference to `fmod'

    I am going through K&R C Answer Book and coding exercise4-3.c
    there is a call for fmod library function which I thought was present in math.h but I am resulting an 'underfined reference to 'fmod'...
  11. Replies
    3
    Views
    1,366

    C command descriptions web resource

    is there a good website resource that has a list of the C commands and their descriptions? any thing out there for C++ as well?

    cheers,

    Noah
  12. Replies
    4
    Views
    1,280

    got it - thank you.

    got it - thank you.
  13. Replies
    4
    Views
    1,280

    modulus operator / '%' question

    Gosh this is such a simple question but dont quite understand the logic. I understand that the modulus operator is represented by '%'. And I understand that the expression x % y produces the...
  14. okay CWR - thats it. thank you!

    okay CWR - thats it. thank you!
  15. Actually the %ld tells printf that hte...

    Actually the %ld tells printf that hte correcsponding argument is a long integer.

    let me get out a different Program that does not use the %ld specification. it is still strange because the...
  16. why does printf output include a trailing 'D'

    I am a newbie C coder. I am wondering why the following program's printf output show a trailing 'D' after the decimal integer. Note the trailing D after the 8 in the output snippet below.
    ...
Results 1 to 16 of 16