From: Repentinus
My mistake, I actually meant my first post as how I can define two different datatypes signed and unsigned. Would example in my previous post work this way?
So, are you trying to change the data type, or are you trying to define it at run time? Your code makes absolutely no sense whatsoever.
If you just want to make a variable signed or unsigned then declaring them like this should work
unsigned int noSign;
int noSign;
If you are trying to be able to convert from one to another then I would probably suggest a class with two functions, signed and unsigned that will take its input and convert it to signed or unsigned depending on what you want.