C++ 利用指针遍历数组whilefor
while#include <iostream>using namespace std;int main() { int arr[6] = { 0 }; int* ptr = arr; int len = sizeof(arr) / sizeof(int); for (int i = 0; i < len; i++) { cin >> arr[i]; } // write yo