Sep 27, 2014 at 7:42pm UTC
That fixed it!
...But it only works on the C++ shell website and not on my visual back C++ from 2010. :( Hope my instructor considers that good since it does do what it's supposed to.
EDIT: My instructor has accepted the work.
Thank you for your help, MiiNiPaa!
Last edited on Sep 27, 2014 at 8:17pm UTC
Sep 27, 2014 at 7:46pm UTC
Hmm... There is probably some C++11 feature used. Can you upgrade your compiler to something up-to-date?
And what errors does it shows?
Sep 27, 2014 at 8:23pm UTC
Mostly syntax errors like:
error C2143: syntax error : missing ')' before '{'
On your constructor
and
error C2447: '{' : missing function header (old-style formal list?)
on your {} below your constructor.
I may just use C++ shell from now. Much less of a headache to run things as well.