标签:数组 字符数组 ++ 遍历 const iostream null turn return
#include <iostream> int main(){ const char *options[] = { "test1", "test2", "test1", "test2", NULL }; int i = 0; while(options[i]){ std::cout<<options[i]<<std::endl; i++; } return 0; }
标签:数组 字符数组 ++ 遍历 const iostream null turn return
原文地址:https://www.cnblogs.com/youge-OneSQL/p/9565843.html