endl为什么换不行?
#include <iostream.h>int main()
{
cout<<"输入两个整数:";
int a,b;
cin>>a>>b;
int c,d;
if (a<=b)
{
c=a;
d=b;
}
else
{
c=b;
d=a;
}
cout<<"vold of"<<c<<" to "<<d<<" intshi "<<endl;
for (int i=c,e=1;i<=d;i++,++e)
cout<<i<<" ";
if (e%10==0)
{
cout<<endl;
}
return 0;
}
为什么换不了行?