First of all, I am a beginner, so use the most basic language possible please.
I am using C++, and we have a dataset, and we have to split up the even and odd numbers, which I have already done. Here are the instructions for the part that I do not know how to do:
"Write a function named output. This function will output the odd array to a file named odd.dat and even array to a file named even.dat. This function should be called only if the user wishes to output the data into different file."