|
-
May 11th, 2001, 02:21 AM
#1
Thread Starter
Lively Member
strcpy is annoying! help!
Hi All,
I'm having a an annoying problem with some source, any help will be greatly appreciated!
char point;
//load all other variables etc
//Load BattleStatus.dat into oceanp
thefile.open("battlestatus.dat");
for(rowd = 0; rowd <=9; rowd++)
{
for (cold = 0; cold <=9; cold++)
{
thefile.get(point);
if(point == '~')
//The problem is below I keep getting the following compiler error about the strcpy: error C2664: 'strcpy' : cannot convert parameter 1 from 'char' to 'char *'
strcpy(point, " ");
oceanp[rowd][cold] = point;
}
}
thefile.close();
Plz help!
Regards,
Smithy.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|