The following code will not compile:
#include <iostream>
int main(){
for (int i = 0, double j = 0; i < 10; ++i, j+=.1){
std::cout << i << " " << j << '\n';
}
return 0;
}
Is it possible to initialize two different types, or do I need to create a struct/pair/etc?