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).
Type: Posts; User: Adak
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).
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...
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{
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...
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?