Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

pointer to array of strings as procedure argument

$
0
0

Windows 7, C++, console app

Is there a method of creating a pointer to a multi-dimensional array, as in:

wchar_t my_strings[ COUNT_OF ][ SIZE_OF ];

And pass that pointer to a procedure?

Class new_class {...

void Set_Pointer( wchar_t *new_pointer[ x ] [ y ] ) { m_class_pointer = new_pointer; } ...}

In that manner the methods of new_class would have full access to the array of strings.


~jag77 We need to know what a dragon is before we study its anatomy. (Bryan Kelly, 2010)



Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>