728x90 포인터설명1 [C++ Example#6-1 Q&A] 포인터를 활용한 배열 값의 증가 예제코드 설명 포인터를 활용한 배열 값의 증가 예제코드 설명 // C++ Example#6 #include using namespace std; void addNum(int* i, int* j) { for (int* count = i; count < j; count++) { (*count)++; } } void display(const int* i, const int* j) { for (const int* count = i; count < j; count++) { cout 2020. 3. 22. 이전 1 다음 728x90