The snippet you posted won't compile.
--
Ian Collins.
Sorry!
That piece didn't initialize an array of chars.
it's basically this:
#include <max.h>
#include <dpl.h>
void DoThang (char (&cMovesDone)[9])
{
for(int i = 0; i<9; i++)
cMovesDone[i] = 'k';
}
int main()
{
dpl_DosGraphixEnable();
char c[9] = "aaaaaaaa";
DoThang (c);
cout<<c;
}
max.h and dpl.h are my own headers. They do little things like make a
dos app look neater by putting up nice little lines and such
decorations.
Ignore them. The problem is when i compile the code above (bereft of
dpl_DosGraphixEnable()), i get an output of kkkkkkkkkr and some really
wierd symbols like a small smiley and lines. I mean there are already
9 k's there already, where did the r and the other stuff come from?
what should i do?