How to realize the char** value returned by C++ to C #
This article mainly explains "how to achieve C++ to return char** value to C #", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "how to achieve C++ return char** value to C #" bar!
Char * * arr; int arrlen,arrcol;templatevoid make2DArray (titled * & ptr, int rows, int cols) {/ / create a two-dimensional array, first create a row pointer ptr = new T* [rows]; / / then allocate space for each row for (int I = 0; I < rows; iArray +) {ptr [I] = new T [cols] }} void alloc2D () {arrlen = 3; arrcol = 2; arr = new char* [arrlen]; / / allocate the array space of three elements, each of which is the char* pointer element for (int I = 0; I)