main() から特定の関数を呼び出す方法を見つけようとしています。
void initialize(struct word_pair word_table[], int size)
例えばinitialize ( what, 5);
私はCが初めてで、頭の中ですべてが台無しになっていると思います。
これは使用例の 1 つです。
#define SIZE 10
struct word_pair word_tables[SIZE];
// Populate the elements of word_tables
initialize(word_tables, SIZE);
このinitialize()関数は 2 つの引数を取ります。
struct word_pair上記の例では、変数word_tablesは size の配列ですSIZE。
SIZEは上記の例でmacro定義されて10いますが、必要に応じて変更できます。