Skip to content

Commit

Permalink
通常のfor文での実装に変更 (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZOI-dayo authored May 11, 2024
1 parent 7509769 commit a010e00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/text/chapter-6/practice/order.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ int main() {
} else if (query_type == 2) {
int price;
cin >> price;
for (Item item : items) {
for (int i=0; i<items.size(); i++) {
Item item = items[i];
if (item.price <= price) {
item.print();
}
Expand Down

0 comments on commit a010e00

Please sign in to comment.