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

来源:互联网 发布:树和森林的遍历算法 编辑:程序博客网 时间:2024/05/02 00:38

  Today I reviewed type casting on C++ language.  There is a strange phenomenon.  According to
the articles on type casting, the "dynamic_cast()" can be downcasting.  But I implement a example
to test downcasting by "dynamic_cast()".  There is a warning on appending a flag "/GR-" into
the compiler command in Visual C++ 6.0.  After appending the flag, I recompiled my example source
again.  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 the
mistake in the articles, or is there a hiddening bug in Visual C++?

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

原创粉丝点击