字符数组优雅遍历
#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; }
MySQL限时解答,24小时内友哥专业解答
http://www.yougemysqldba.com
如有进一步需要请联系微信onesoft007
微博账号@友哥一指
http://www.yougemysqldba.com
如有进一步需要请联系微信onesoft007
微博账号@友哥一指