| 1 | #include <string> |
|---|---|
| 2 | #include <vector> |
| 3 | typedef std::vector<int> int_vect; |
| 4 | typedef std::vector<std::string> string_vect; |
| 5 | |
| 6 | int main() |
| 7 | { |
| 8 | int_vect numbers; |
| 9 | numbers.push_back(x: 1); // Set break point at this line. |
| 10 | numbers.push_back(x: 12); // Set break point at this line. |
| 11 | numbers.push_back(x: 123); |
| 12 | numbers.push_back(x: 1234); |
| 13 | numbers.push_back(x: 12345); // Set break point at this line. |
| 14 | numbers.push_back(x: 123456); |
| 15 | numbers.push_back(x: 1234567); |
| 16 | |
| 17 | numbers.clear(); // Set break point at this line. |
| 18 | |
| 19 | numbers.push_back(x: 7); // Set break point at this line. |
| 20 | |
| 21 | string_vect strings; // Set break point at this line. |
| 22 | strings.push_back(x: std::string("goofy")); |
| 23 | strings.push_back(x: std::string("is")); |
| 24 | strings.push_back(x: std::string("smart")); |
| 25 | |
| 26 | strings.push_back(x: std::string("!!!")); // Set break point at this line. |
| 27 | |
| 28 | strings.clear(); // Set break point at this line. |
| 29 | |
| 30 | return 0;// Set break point at this line. |
| 31 | } |
| 32 |
