I am a beginner c++ programmer and I am having trouble returning a multidimensional array from a function. I know I have to use a pointer but I am a little confused on how.
here is the code,The C and S are global variables.
Does the code compile? What is the trouble that you are having? Compile or run-time errors? Please post a more specific question related to the code that you've posted. I'm not sure if you can use variables in the declaration like that or not. I've never tried it. There isn't enough in what you have posted for me to conveniently try to compile and execute the program.