Iterable Designated Initializer Alternative in C++

前端 未结 0 1506
眼角桃花
眼角桃花 2020-12-13 13:47

In C99, a struct array can be initialized

 static struct {char* tag; char* msg;} help_info[] = {[0]={"tag0","msg0"}, [1]={"tag1"         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题