I have a quick question about using for loops. if you initialize your control variable inside the loop body, and test it against a condition that yields a different data type, is this considered bad form?
my example:
1 2 3 4
void displayVect(vector<double> v){
for(int i = 0; i < v.size(); ++i)
...
}
Is it better to have the control variable a double in this case?