int i = 1;
while(i <= 10){
fout[i].open("dat$i.dat");
fout[i] << i <<'\n';
i++;
}

てな感じでデータファイルを10個作りたいのですが、
""の内のiは変数と見てくれなくて困ってます。

何かいい方法ありませんか??