I am programming using C and not C++, so I didn't put it within a class declaration.
I figured out that in global space I cannot execute code,
I can only assign values. Apparently, [] constitutes execution.
So simply by not using the [], and uses the pointer
int x[] = {1, 2, 3};
int *y[] =...
Okay,
I tried again,
Before, I put that code
char buf ....
in the header file, and that's where errors are,
once I move them into C file, the errors disappers.
Why is that?
I am trying to generate an array of display items,
and then specify the traversal sequence in another
array... I want...
I am using Metrowerks C compiler,
under Windows NT 4.0.
I have downloaded the latest version of DJGPP, and it gave me similar error as Metrowerk's: initializaer element is not constant.
If you are running on Microsoft Windows platform,
you can use the window's built-in screen capture
ability. I have not use the screen capture function
in a while. But I believe the print-screen button
on your keyboard will capture the entire screen.
and ctrl-printscreen (hold those two keys...
Hi recently I try to do something like the following:
char buf[6] = { 'a','b','c','d','e','f'};
char combination[2] = { buf[3], buf[2] };
and the C compiler gives me error "illegal constant expression"
Does anyone know why the code is wrong?
What I am trying to do is create an array...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.