|
From: Chris T. <tel...@mi...> - 2000-10-12 14:26:08
|
>C++ looks askance at both C-style casts and C-style arrays. >The C++ committee had no desire to extend such features, >and this is not allowed in C. Ask in a C language newsgroup >for a deeper discussion. > >Anyway, lose the cast > unsigned char String[] = "Hello" ; >and you should be OK. Ok I'm really tired, I swear I compiled that a dozen times and got errors before. Anyways void Add(unsigned char * Num1, unsigned char * Num2) ; Add(Sum, "123") ; That doesn't work for sure. I'm trying to figure out how to define TEXT so that I can define the signedness and be done with it yet when you do that you have to give up assigning to arrays and the sizeof operator more or less. Looks like I'll just have to use two macros. One for passing and another for assignment. One feature I certainly wish the language had was retyping variables. The other would be setting the literal types with pragmas or some other such mechanism. Thanks anyway. |