read numbers from files in columns, one column whole numbers, other column numbers with decimals

Posted by user320950 on Stack Overflow See other posts from Stack Overflow or by user320950
Published on 2010-04-20T16:55:05Z Indexed on 2010/04/20 17:03 UTC
Read the original article Hit count: 603

Filed under:
|
|
|
|
int price=' ';   // attempt to grab a decimal number - but not the correct way
int itemnum=' '; // attempt to grab a whole number - but not the right way

while((price== (price*1.00)) && (itemnum == (itemnum*1)))

What is a way to get numbers in 2 diff columns where one column is whole numbers and the other are numbers with decimal places?

© Stack Overflow or respective owner

Related posts about read

Related posts about write