Mixed Arrays in C++ and C#

前端 未结 4 395
心在旅途
心在旅途 2021-01-03 03:21

Is it possible to create a Mixed Array in both C++ and C#

I mean an array that contains both chars and ints?

ex:

Array [][] = {{\'a\',1},{\'b         


        
4条回答
  •  轮回少年
    2021-01-03 03:54

    In C# and C++ it's not possible to create an array of mixed types. You should use other classes like std::vector in C++ or Dictionary in C#.

提交回复
热议问题