[ create a new paste ] login | about

Link: http://codepad.org/rWU61Yy6    [ raw code | fork ]

xtofl - C++, pasted on Jul 13:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <vector>
#include <string>

using namespace std;

struct Person {
  string name;
  Person( const char* name ): name( name ) {};
};

int main() {
  vector<Person> ps;
  const char* names [] = { "me", "You", "him", "Her" };
  ps.insert( ps.end(), names, names+4 );
}


Output:
No errors or program output.


Create a new paste based on this one


Comments: