Esempio n. 1
0
int main() {
    Resume *linResume = new Resume("Lincoln");
    linResume->setAge("23");
    linResume->setSex("M");
    puts(linResume->toString());
    Resume *linResume2 = linResume->clone();
    linResume2->setAge("22");
    puts(linResume2->toString());
    return 0;
}
Esempio n. 2
0
 void PrototypeMain::main(std::string args[]) {
     Resume* linResume = new Resume("Lincoln");
     linResume->setAge("23");
     linResume->setSex("M");
     //JAVA TO C++ CONVERTER TODO TASK: There is no native C++ equivalent to 'toString':
     puts(linResume->toString());
     Resume* linResume2 = linResume->clone();
     linResume2->setAge("22");
     //JAVA TO C++ CONVERTER TODO TASK: There is no native C++ equivalent to 'toString':
     puts(linResume2->toString());
 }