cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
invalid operands to binary % (have ‘fl
invalid operands to binary % (have ‘float’ and ‘int’)
Aug 10, 2012 at 6:26am UTC
vgoel38
(133)
http://ideone.com/ZAHU4
cant find whats wrong with it..!!
Aug 10, 2012 at 6:50am UTC
Bassam300
(32)
your wrong is in this line
if
((tr % 5 == 0) && (tr <= bal-tax))
the write is
if
((tr / 5 == 0) && (tr <= bal-tax))
"%"
this opreator just come with int not float
sorry for my bad english
Last edited on
Aug 10, 2012 at 6:58am UTC
Topic archived. No new replies allowed.