Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Mingster

    What's wrong with this code: array assignment problem

    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[] =...
  2. Mingster

    What's wrong with this code: array assignment problem

    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...
  3. Mingster

    What's wrong with this code: array assignment problem

    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.
  4. Mingster

    graphics related

    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...
  5. Mingster

    What's wrong with this code: array assignment problem

    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...

Part and Inventory Search

Back
Top