類的設計缺陷

這是一個很無心識的錯誤。web class Example { public: void detectString(std::string str); bool success(); String getResult(); private: std::string str; bool success; }; 需求是這樣的。我有一個輸入,我須要對其進行合法性的檢測,而後給出處理結果。我以前
相關文章
相關標籤/搜索