I'm bored so I did this just to screw around. Instead of using common C++ datatypes such as int or char, I called them Integer and String, and just outputted the value into a messagebox. You can learn a lot from a bored dummy

c++ Code:
  1. #include <stdio.h>
  2. #include <windows.h>
  3.  
  4. typedef int Integer;
  5. typedef char String;
  6.  
  7. Integer main(void); //Preprocessor directive
  8.  
  9. Integer main(void)
  10. {  
  11.     String Text[255];
  12.     Integer Number = 5;
  13.     sprintf(Text,"%i", Number);
  14.     MessageBox(NULL, Text, "typedef test", MB_OK);
  15.     return 0;
  16. }