Write a program in C++ to read a set of integers up to n, where n is defined by the user and stored in a one-dimensional array. Also, read a set of floating point numbers of the same size and store it into another array and print the contents of these two arrays separately, using the function overloading technique.