title: C++ Data Types vs. C# Data Types
body: <p>As a professional C# programmer learning C++, I would like to keep data types the same as in C#. I wrote a header file that should help with this. What I want to know is if it is correct.</p>
  
  <pre><code>// boolean
  //#DEFINE bool char
  //#DEFINE true 0x01
  //#DEFINE false 0x00
  
  // 8-bit integers
  #DEFINE byte unsigned char
  #DEFINE UInt8 unsigned char
  #DEFINE Byte unsigned char
  #DEFINE sbyte char
  #DEFINE Int8 char
  #DEFINE SByte char
  
  // 16-bit integers
  #DEFINE ushort unsigned short int
  #DEFINE UInt16 unsigned short int
  #DEFINE short short int
  #DEFINE Int16 short int
  
  // 32-bit integers
  #DEFINE uint unsigned int
  #DEFINE UInt32 unsigned int
  //#DEFINE int int
  #DEFINE Int32 int
  
  // 64-bit integers
  #DEFINE long long long
  #DEFINE Int64 long long
  #DEFINE ulong unsigned long long
  #DEFINE UInt64 unsigned long long
  
  // 32-bit floating point
  //#DEFINE float float
  #DEFINE Single float
  
  // 64-bit floating point
  //#DEFINE double double
  #DEFINE Double double
  </code></pre>