Question: C++ Function: void InitDatabase(int capacity, string words[], int occurrenceCounts[], int scoreTotals, int& size); This function must be called once before adding words to the database.
C++ Function: void InitDatabase(int capacity, string words[], int occurrenceCounts[], int scoreTotals, int& size);
This function must be called once before adding words to the database. Write a code that sets the number of entries stored in the database to zero.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
