Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2007
    Posts
    130

    Unanswered: float type filed values cannot be print in C++

    Hello ALL

    When I use printf(...) to display values of float type filed.
    There are error occurring.
    Code:
    MYSQL_ROW * rw;
    
    printf("%f\n", rm->row[0]);

  2. #2
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    What should rm point to? You don't include any declaration or assignment for rm in your code sample.

    -PatP

  3. #3
    Join Date
    Dec 2008
    Posts
    59
    your should post your source code I think the error is any other.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •