Explanation
Include necessary header files.
#include <alloc.h>
#include <process.h>
#include <stdio.h>
Actually, your compiler goes through your program several times as
it compiles the program. Before it attempts to translate any code, it
simply looks for # signs and makes any substitutions in the program
that are required by the statements that follow.
The #define directive defines a macro.
For example:
#define MAIN_CLASS "MyFrame.jar"
The malloc() method allocates a block
of bytes from the memory heap. It allows a program to allocate memory
explicitly, as it is needed, and in the exact amounts needed. The heap
is used for dynamic allocation of variable-sized blocks of memory.
char* cmdline = (char*)malloc(1024 );
|