If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > float type filed values cannot be print in C++

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-01-08, 00:23
cy163 cy163 is offline
Registered User
 
Join Date: Apr 2007
Posts: 127
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]);
Reply With Quote
  #2 (permalink)  
Old 12-01-08, 01:41
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,598
What should rm point to? You don't include any declaration or assignment for rm in your code sample.

-PatP
Reply With Quote
  #3 (permalink)  
Old 01-19-09, 00:29
hkp819 hkp819 is offline
Registered User
 
Join Date: Dec 2008
Posts: 59
your should post your source code I think the error is any other.
__________________
New York Web design
Website design

Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On