字符数组优雅遍历
2021-07-09 14:06
阅读:752
标签:数组 字符数组 ++ 遍历 const iostream null turn return
#includeint main(){ const char *options[] = { "test1", "test2", "test1", "test2", NULL }; int i = 0; while(options[i]){ std::coutstd::endl; i++; } return 0; }
字符数组优雅遍历
标签:数组 字符数组 ++ 遍历 const iostream null turn return
原文地址:https://www.cnblogs.com/youge-OneSQL/p/9565843.html
评论
亲,登录后才可以留言!