開發平台(Platform):Win10
編譯器:VB2017
問題(Question):執行結果跟預期的不同
預期的正確結果(Expected Output):https://i.imgur.com/8iSjYo5.png
錯誤結果(Wrong Output):https://i.imgur.com/JkIIBlK.png
程式碼(Code):我是參考網路上的教學網站
https://openhome.cc/Gossip/CppGossip/CustomExceptionClass.html
補充說明(Supplement):
我自己測試到 _message = str2.c_str(); 這行都還沒有問題,但是在用.message()方法
呼叫以後就變成亂碼了,有在想是不是string轉入char*的問題,或是_message沒有傳回
基礎類別的定義。