diff --git a/test1 b/test1 index 70b20ea..a0ffbc7 100755 Binary files a/test1 and b/test1 differ diff --git a/test1.cpp b/test1.cpp index 0b14f89..d3ae210 100644 --- a/test1.cpp +++ b/test1.cpp @@ -25,8 +25,8 @@ int main() } } // output - cout << i + 1 << endl; - for (int j = 0; j <= i; j++) + cout << i << endl; + for (int j = 0; j < i; j++) { cout << books[j].no << "\t" << books[j].name << "\t" << fixed << setprecision(2) << books[j].price << endl; }