[轉載自:http://www.cppblog.com/mzty/archive/2006/12/07/16101.html] 主要是兩個問題:指標截斷和資料對齊。C/C++移植的問題1 新的資料類型和函數1)固定精度:(跟X86或X64無關)TermDescriptionDWORD3232-bit unsigned integerDWORD6464-bit unsigned integerINT3232-bit signed integerINT6464-bit signed
The tradeoff between decimal and double is precision versus range. The decimal is the best choice when precision is required, but choose a double for the greatest range. The decimaltype is well suited for financial calculations, as shown in the
The pattern of properties encapsulating a single field is so common that C# 3.0 introduced auto-implemented properties. Here’s an example:public int Rating { get; set; }This Rating property encapsulates some value of type int. Because calling code
FeaturesSMALL! You can compile and execute C code everywhere, for example on rescue disks (about 100KB for x86 TCC executable, including C preprocessor, C compiler, assembler and linker).FAST! tcc generates x86 code. No byte code overhead. Compile, a
1、聲明一個抽象方法使用abstract關鍵字。2、一個類中可以包含一個或多個抽象方法。3、抽象類別中可以存在非抽象的方法。4、抽象類別不能被直接被執行個體化。5、實現抽象類別用“:”(冒號),實現抽象方法用override關鍵字。6、抽象類別可以被抽象類別所繼承,結果仍是抽象類別。7、抽象方法被實現後,不能更改修飾符。DEMO: public abstract class Person { public abstract void SayHello();
using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Net.NetworkInformation; using System.Threading; namespace Manager.Common { public static class NetCommon{ /// <summary> ///