Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
こんにちは、クラスメソッド関数で%演算子を使用すると問題が発生します。コンソールウィンドウがポップアップしますが、「。exeで問題が発生したため、閉じる必要があります」と表示されると、別のウィンドウが開きます。何か案が?省略した場合のコード行は正常に機能します。
r = gnumer % gden;
gdenゼロですか?ゼロによるモジュラスは、ゼロによる除算と同じくらい悪いです。
gden
gden == 0が原因である可能性があります。または、gdenがグローバル変数または静的変数でない場合は、初期化するのを忘れましたか?