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:
#include <stdio.h> #include <windows.h> typedef int Integer; typedef char String; Integer main(void); //Preprocessor directive Integer main(void) { String Text[255]; Integer Number = 5; sprintf(Text,"%i", Number); MessageBox(NULL, Text, "typedef test", MB_OK); return 0; }






Mark Thread Resolved
Reply With Quote