Search:

Type: Posts; User: Adak

Search: Search took 0.10 seconds.

  1. Replies
    16
    Views
    4,634

    In very short testing, no - I couldn't do it...

    In very short testing, no - I couldn't do it without the definition of the struct, being above the first reference to the name of the struct (in the function prototype).
  2. Replies
    16
    Views
    4,634

    In maual(), ch and kiwi were not defined, and for...

    In maual(), ch and kiwi were not defined, and for my compiler at least, you can't reference a struct by name, even in a function prototype, before said struct has been defined for the compiler. You...
  3. Replies
    16
    Views
    4,634

    This version of your program compiles, but I...

    This version of your program compiles, but I can't run it without all the rest of it. Check it out.




    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>

    struct crypt{
  4. Replies
    16
    Views
    4,634

    Oh yeah! Set the options in VS to compile *.c...

    Oh yeah! Set the options in VS to compile *.c programs with the C compiler it has, not the C++. Make sure your programs have a dot c extension on them.

    Then post your latest code, and I'll take it...
  5. Replies
    16
    Views
    4,634

    Key[] has no size, so that's #1 problem. Your...

    Key[] has no size, so that's #1 problem. Your compiler should be complaining about this. Are you using a C++ compiler, by chance, instead of a C compiler?
Results 1 to 5 of 5