전공 공부/C++
클래스 ArrayUtility (int배열을 double배열로, double배열을 int배열로)
#include using namespace std; class ArrayUtility { public: static void intToDouble(int source[], double dest[], int size); static void doubleToInt(double source[], int dest[], int size); }; void ArrayUtility::intToDouble(int source[], double dest[], int size) { for (int i = 0; i < size; i++) { dest[i] = (double)source[i]; } } void ArrayUtility::doubleToInt(double source[], int dest[], int size) ..
2021. 1. 4. 22:19