c++ 遍历char* 2021-10-10 本文已影响0人 c之气三段 const char *a = "12345"; for ( a; *a != NULL; a++) { cout << *a << endl; } image.png