Jan 30, 2018 at 4:01am UTC
What is the exact error you are getting?
A LNK2019 error is an unresolved external symbol error, likely the way you have your project/solution set up in VS.
Jan 30, 2018 at 4:04am UTC
These are the three exact errors I'm getting.
1>junk.obj : error LNK2019: unresolved external symbol "public: void __thiscall temporary::set(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,double,double)" (?set@temporary@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@NN@Z) referenced in function _main
1>junk.obj : error LNK2019: unresolved external symbol "public: void __thiscall temporary::print(void)" (?print@temporary@@QAEXXZ) referenced in function _main
1>junk.obj : error LNK2019: unresolved external symbol "public: __thiscall temporary::temporary(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,double,double)" (??0temporary@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@NN@Z) referenced in function _main
Jan 30, 2018 at 4:18am UTC
You have declared your temporary class, where are the methods being defined?
You don't have any of the class methods (functions) with their code shown.
Jan 30, 2018 at 4:29am UTC
This is all the code in the text book provided me, I'm not sure what to do to make this print.
Jan 30, 2018 at 4:51am UTC
If you don't include the code for your class methods, VS won't be able to find it.
Jan 30, 2018 at 4:55am UTC
Hmm...since this is the exact code given, do you think that the answer to this question is that it doesn't print anything because the class has no defined member functions?
Jan 30, 2018 at 5:02am UTC
It doesn't print anything because the code fails to compile.