>>510
レスありがとうございます。
その式だと、うまくいきました。

ですが、
for(double a=-0.3; a<0.8; a+=0.1){
cout << a << endl;
}
この式の何がいけないのか、よくわからないのですが