--SOLVED--
a temp var actually solved it:
unsigned char uprev,ucurrent;
uprev = buffer[j -1];
ucurrent = buffer[j];
Type: Posts; User: cioannou
--SOLVED--
a temp var actually solved it:
unsigned char uprev,ucurrent;
uprev = buffer[j -1];
ucurrent = buffer[j];
Hello,
I have a strange behavior with an array of bytes which is loaded from a file.
char* buffer;
ifstream file ("data.bin", ios::in|ios::binary|ios::ate);
size =...
I would like to know that too, a customer asked for a small program and I would like to lock my program so that he can only use it in the specific machine
My suggestion
Name your variables something useful like: iamount,years,interest,balance
This is going to help you find errors in your code
I guess that is what you are looking for:
int main()
{
int i,y,x;
char ch;
float r,ans,n;
why do you mess with "ans" inside the loop?
ans=i+(i*r/100)