修复把0,0,0也输出的问题
This commit is contained in:
@@ -25,8 +25,8 @@ int main()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// output
|
// output
|
||||||
cout << i + 1 << endl;
|
cout << i << endl;
|
||||||
for (int j = 0; j <= i; j++)
|
for (int j = 0; j < i; j++)
|
||||||
{
|
{
|
||||||
cout << books[j].no << "\t" << books[j].name << "\t" << fixed << setprecision(2) << books[j].price << endl;
|
cout << books[j].no << "\t" << books[j].name << "\t" << fixed << setprecision(2) << books[j].price << endl;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user