there is errors with the output , i cant find any bug here. Can you show me? Thanks for the advice about e-book
input:
Book book1("Giai tich 1","Nguyen Dinh Huy",2000);
Book book2 = book1;
book2.printBook();
I'm confused by what that 'output' is. It looks like an ASCII representation of the type of binary data that is found in the instruction section of an executable file (AWAVAUATSH). That doesn't match what the program prints at all.
Do you have a compiler like Microsoft Visual Studio, or Dev-C++ or Code::Blocks? If so, try using it to compile and run the program seeplus gave you. If you don't have one, I suggest you download one before you do more programming.
Personally, I wouldn't trust online compilers farther than I could throw them...but they can be better than nothing.
I can see that all the other compilers can run the code. I dont know why my teacher's one didnt. All I know is my teacher's compiler run on Linux . Anyways thanks guys