I am trying to get this function to work, but I keep getting, What is the solution ?
if (size_t i >0 && DailyPOCs.size()>0 && DailyPOCs.size()>dayNumber);
error C2059: syntax error: '>'
I am trying to get this function to work, but I keep getting, What is the solution ?
if (size_t i >0 && DailyPOCs.size()>0 && DailyPOCs.size()>dayNumber);
error C2059: syntax error: '>'
You declared size_t i
but not give it an initial value to compare. So, I suggest 1 way to do which is:
size_t i = 0 //Give it value above here. Zero is just an example
if(i > 0 && DailyPOCs.size()> 0 && DailyPOCs.size() > dayNumber)
{
//Do your work here
}