Hello again... My problem is that my if statement isn't working as I believe it should. Here is a snippet of the for loop.
for(int m=0; m<num; m++)
{
if(begllts <= intarray[m] && intarray[m] <= endllts);
{
cout << setprecision(4) << showpoint <<
dubarray[m] << "C" << stringarray[m]<< endl;
total += dubarray[m];
count ++;
}
}
The intarray[m] is a dynamic array for long long int. Begllts and endllts are inputed by the user and stored as long long ints. The only real problem is that it runs the if statement every time instead of when I define it.
Any ideas? If you need more information, let me know. I'm not good at the snippet part, so I always put just a little so as to not spam non-important stuff.