February 6th Tuesday (一月 六日 火曜日)

    技术2022-05-11  77

      Today I reviewed type casting on C++ language.  There is a strange phenomenon.  According tothe articles on type casting, the "dynamic_cast()" can be downcasting.  But I implement a exampleto test downcasting by "dynamic_cast()".  There is a warning on appending a flag "/GR-" intothe compiler command in Visual C++ 6.0.  After appending the flag, I recompiled my example sourceagain.  OK.  No error, no warning.  Everything looks right.  Run it.

      A fatal error poped up.  My god!  What happened!  I don't know where is wrong.  Is there themistake in the articles, or is there a hiddening bug in Visual C++?

      毎日わたしは自転車で会社へ行きます。  わたしの祖母の家から会社まで三十分 かかります。  わたしは午前七時に おきます。  わたしの会社は午前九時にはじまります。  わたしの会社は午後五時に終わります。 わたしは午前九時から午後五時まで働きます。  日曜日から金曜日まで働きます。 


    最新回复(0)