1 #include <string> 2 #include <vector> 3 4 struct bar { 5 int var1; 6 }; 7 8 struct foo { 9 int var1; 10 bar* my_bar_pointer; 11 bar my_bar_object; 12 foo* next_foo; 13 }; 14 fun(std::vector<std::string> var)15int fun(std::vector<std::string> var) { 16 return var.size(); // breakpoint 1 17 } 18 main(int argc,char const * argv[])19int main(int argc, char const *argv[]) { 20 int var1 = 0; 21 int var2 = 1; 22 std::string str1 = "a"; 23 std::string str2 = "b"; 24 std::vector<std::string> vec; 25 fun(vec); 26 bar bar1 = {2}; 27 bar* bar2 = &bar1; 28 foo foo1 = {3,&bar1, bar1, NULL}; 29 return 0; // breakpoint 2 30 } 31