Im trying to make this so when it saves the file, it goes to another function and grabs the whole array then prints it to another file. Here is the save file:
Here is the error I got though:
16 C:\Users\Todd\Desktop\Tests\Black Skies Projects\saving.cpp cannot convert `char**' to `char*' for argument `3' to `char* statvault(char, char, char*)'
for the line that says cName = statvault('N', 2, cName);
statvault takes a character array (a.k.a. C string) as its third input (char[]). cName is an array of C strings (char*[]). Why it listed that you're dealing with char** and char* is because arrays are specialized pointers (char[] == char* after initialization).
So exactly how can I make it so I can make Saving go into statvault, read the name, bring it back, then put it into a file? This is my first time attempting to move an array from function to function... Im not a person that learns stuff in order, I jump around alot then slowly bring everything together. Its a really bad habit.