Rotating Sentences

Can someone put comments in every code so i can understand it well.?.

if(file.is_open())
{
string line[10] = "";
string nxtline = "";
int no1, no2, cases, maxilent, space=0;
file >> cases;
getline(file, nxtline);
for(no1=0; no1<cases; no1++)
{
getline(file, line[no1]);
}
for(no1=0, maxilent=0; no1<cases; no1++)
{
if(line[no1].length()>maxilent)
{
maxilent=line[no1].length();
}
}
for(no1=0; no1<cases; no1++)
{
if(line[no1].length()<maxilent)
{
for(no2=space; no2<maxilent; no2++)
{
line[no1].insert(line[no1].length(), " ");
}
}
}
for(no1=0; no1<maxilent; no1++)
{
for(no2=cases-1; no2>=0; no2--)
{
cout << line[no2].substr(no1, 1);
}
cout << "\n";
}
file.close();
}

big thanks everyone:)
Topic archived. No new replies allowed.