Use malloc to allocate the vector dynamically. Examples abound on the internet, but you might have more luck searching for "dynamic array C" (vecotr is perhaps more of a C++ term). If you feel like...