catch (...)
block. The trouble is that I don't know what the exception is. There's also only one item in my call stack the whole time (the current line in main that's being executed). There's also one called "External Code" but it never actually goes in there and shows me what's in it. items.txt Unknown exception occurred Please enter a character to exit x Press any key to continue . . . |
1. Define a struct Item { string name; int iid; double value; /* . . . */ }; , make a vector<Item> , vi , and fill it with ten items from a file. 2. Sort vi by name. 3. Sort vi by iid . 4. Sort vi by value; print it in order of decreasing value (i.e., largest value first). 5. Insert Item("horse shoe",99,12.34) and Item("Canon S400", 9988,499.95) . 6. Remove (erase) two Item s identified by name from vi . 7. Remove (erase) two Item s identified by iid from vi . 8. Repeat the exercise with a list<Item> rather than a vector<Item>. |