Created
February 2, 2017 17:47
-
-
Save tbobm/4672cb46d48da5d1bcaec92ba53a1daf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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