How would I make an array to store strings?

前端 未结 4 1556
暖寄归人
暖寄归人 2021-01-29 11:22

So I\'m trying to figure this out with a simple program:

#include 
#include 
#include 
 int main()
{
    char a[]=         


        
4条回答
  •  离开以前
    2021-01-29 11:43

    You could use an array of strings:

    std::string test[20];
    

    And avoid using #include ; use just #include .

提交回复
热议问题