您的位置:首页 > 产品设计 > UI/UE

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

2007-02-09 18:00 447 查看
  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++?

  毎日わたしは自転車で会社へ行きます。  わたしの祖母の家から会社まで三十分 かかります。  わたしは午前七時に おきます。  わたしの会社は午前
九時にはじまります。  わたしの会社は午後五時に終わります。 わたしは午前九時から午後五時まで働きます。  日曜日から金曜日まで働きます。 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  casting c++ compiler command