Skip to content

Instantly share code, notes, and snippets.

@tbobm
Created February 2, 2017 17:47
Show Gist options
  • Save tbobm/4672cb46d48da5d1bcaec92ba53a1daf to your computer and use it in GitHub Desktop.
Save tbobm/4672cb46d48da5d1bcaec92ba53a1daf to your computer and use it in GitHub Desktop.
int main()
{
Droid d;
Droid d1("Avenger");
size_t Durasel = 200;
std::cout << d << std::endl;
std::cout << d1 << std::endl;
d = d1;
d.setStatus(new std::string("Kill Kill Kill!"));
d << Durasel;
std::cout << d << "--" << Durasel << std::endl;
Droid d2 = d;
d.setId("Rex");
std::cout << (d2 != d) << std::endl;
return (0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment