My program was running fine under visual studio, but I moved it over to Linux, and have run into one problem I have no idea how to fix.
error: expected expression before 'int'
(all the following lines cause the error. Obviously it is what I'm doing with the INT that is the problem);
CEnts = NetPay - int(NetPay);
numHuns = int(NetPay)/100;
numHuns = int(NetPay)/1000;
numTens = int(NetPay) % 100 / 10;
numOnes = int(NetPay) % 100 % 10;
RemainDER=int(N etPay) % 100;
int CEnts3 = int(CEnts);
I used INT as a way of cutting a float down, eliminating numbers smaller than whole numbers. Any ideas or workarounds?
error: expected expression before 'int'
(all the following lines cause the error. Obviously it is what I'm doing with the INT that is the problem);
CEnts = NetPay - int(NetPay);
numHuns = int(NetPay)/100;
numHuns = int(NetPay)/1000;
numTens = int(NetPay) % 100 / 10;
numOnes = int(NetPay) % 100 % 10;
RemainDER=int(N etPay) % 100;
int CEnts3 = int(CEnts);
I used INT as a way of cutting a float down, eliminating numbers smaller than whole numbers. Any ideas or workarounds?
Comment