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++?
毎日わたしは自転車で会社へ行きます。 わたしの祖母の家から会社まで三十分 かかります。 わたしは午前七時に おきます。 わたしの会社は午前
九時にはじまります。 わたしの会社は午後五時に終わります。 わたしは午前九時から午後五時まで働きます。 日曜日から金曜日まで働きます。
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++?
毎日わたしは自転車で会社へ行きます。 わたしの祖母の家から会社まで三十分 かかります。 わたしは午前七時に おきます。 わたしの会社は午前
九時にはじまります。 わたしの会社は午後五時に終わります。 わたしは午前九時から午後五時まで働きます。 日曜日から金曜日まで働きます。
相关文章推荐
- January 6th Tuesday 2009 (一月 六日 火曜日)
- 2008 May 6th Tuesday (五月 六日 火曜日)
- March 6th Tuesday (三月 六日 火曜日)
- 2008 January 8th Tuesday (一月 八日 火曜日)
- 2008 January 22th Tuesday (一月 二十二日 火曜日)
- January 13th Tuesday 2009 (一月 十三日 火曜日)
- February 3rd Tuesday 2009 (二月 三日 火曜日)
- Februray 27th Tuesday (一月 二十七日 火曜日)
- February 17th Tuesday 2009 (二月 十七日 火曜日)
- February 24th Tuesday 2009 (二月 二十四日 火曜日)
- Februray 13th Tuesday (一月 十三日 火曜日)
- 2008 February 5th Tuesday (二月 五日 火曜日
- 2008 January 15th Tuesday (一月 十五日 火曜日)
- 2008 February 26th Tuesday (二月 二十六日 火曜日)
- February 6th Friday 2009 (二月 六日 金曜日)
- 2008 February 19th Tuesday (二月 十九日 火曜日)
- February 10th Tuesday 2009 (二月 十日 火曜日)
- March 20th Tuesday (三月 二十日 火曜日)
- Aprial 10th Tuesday (四月 十日 火曜日)
- May 29th Tuesday (五月 二十九日 火曜日)