Hello, I get this error from code within a header file...any ideas?
ScorePlayerMatch.h:25: error: stray '\20' in program
ScorePlayerMatch.h:25: error: parse error before numeric constant
ScorePlayerMatch.h:25: error: stray '\20' in program
ScorePlayerMatch.h:25: error: parse error before numeric constant
Code:
#include <Carbon/Carbon.h>
struct scoreMatch {
double scoreArr[5][2];
}ScorePlayerMatch();
scoreMatch ScorePlayerMatch(double pair, double threeKind, double twoPair, double fourKind, double fullHouse, double pairCard, double secPairCard, double threeKindCard, double highC, double lowC)
{
scoreMatch infunc;
infunc.scoreArr[0][0] = pair;
infunc.scoreArr[0][1] = 2.0*pow(10.0,6.0) + (pairCard * 10000.0) + (highC) + (lowC/100.0);
infunc.scoreArr[1][0] = threeKind;
infunc.scoreArr[1][1] = 4.0*pow(10.0,6.0) + (pairCard * 10000.0) + (highC) + (lowC/100.0);
infunc.scoreArr[2][0] = twoPair;
infunc.scoreArr[2][1] = 3.0*pow(10.0,6.0) + (pairCard* 10000.0) + (secPairCard*100.0) + (highC) + (lowC/100.0);
infunc.scoreArr[3][0] = fourKind;
infunc.scoreArr[3][1] = (8.0*pow(10.0,6.0)) + (pairCard * (1.0 * pow(10.0,4.0))) + (highC) + (lowC/100.0);
infunc.scoreArr[4][0] = fullHouse;
infunc.scoreArr[4][1] = 7.0*pow(10.0,6.0) + (pairCard*10000.0) + (threeKindCard*100.0) + (highC) + (lowC/100.0);
return infunc;
}