Sign in to follow this  

Stray '\' errors??

This topic is 2663 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ive never had this type of error before, and I cant figure out the problem... Heres the mathfunc.h file:

#ifndef MATHFUNC_H
#define MATHFUNC_H
double isPof(double is, double of);
double pofIS(double percent, double of);
double round(double number, int precision);
#endif


double isPof(double is, double of)
{
double hundred = 100;
double sumhalf = is * hundred;
double sumfull = sumhalf/of;
sumfull = round(sumfull, 1);
return sumfull;
}

double pofIS(double percent, double of)
{
double hundred = 100;
double sumhalf = of * percent;
double sumfull = sumhalf/100;
sumfull = round(sumfull, 1);
return sumfull;
}

double round(double number, int precision)
{
int multiply = 10;
for (int i = 1; i < precision; i++)
{
multiply *= 10;
}
number *= multiply;
number += 0.5;
int newnumber = (int)number;
double finalnumber = (double)newnumber/multiply;
return finalnumber;
}



And the main.cpp(Which doesnt have any problems):


#include <iostream>
#include "mathfunc.h"

using namespace std;

int main()
{
cout << isPof(91, 99) << endl;
cout << isPof(91, 99) << endl;
cin.get();
cin.get();
}



Now when I compile the program, here all all the errors I get:
mathfunc.h:1: error: stray '\144' in program
In file included from testinclude.cpp:2:
mathfunc.h:1:4: warning: null character(s) ignored
mathfunc.h:1: error: stray '\3' in program
mathfunc.h:1:6: warning: null character(s) ignored
mathfunc.h:1: error: stray '\4' in program
mathfunc.h:1:10: warning: null character(s) ignored
mathfunc.h:1: error: stray '\255' in program
mathfunc.h:1: error: stray '\255' in program
mathfunc.h:1:15: warning: null character(s) ignored
mathfunc.h:1: error: stray '\184' in program
mathfunc.h:1:18: warning: null character(s) ignored
mathfunc.h:1:26: warning: null character(s) ignored

mathfunc.h:1: error: stray '@' in program
mathfunc.h:1: error: stray '\128' in program
mathfunc.h:1:62: warning: null character(s) ignored
mathfunc.h:1: error: stray '\14' in program
mathfunc.h:1: error: stray '\31' in program
mathfunc.h:1: error: stray '\186' in program
mathfunc.h:1: error: stray '\14' in program
mathfunc.h:1:69: warning: null character(s) ignored
mathfunc.h:1: error: stray '\180' in program
mathfunc.h:1: error: stray '\205' in program
mathfunc.h:1: error: expected constructor, destructor, or type conversion before '!' token

mathfunc.h:1: error: expected `,' or `;' before '!' token
mathfunc.h:1: error: stray '\184' in program
mathfunc.h:1: error: stray '\1' in program
mathfunc.h:1: error: stray '\205' in program
mathfunc.h:3:2: warning: null character(s) ignored
mathfunc.h:3:11: warning: null character(s) ignored
mathfunc.h:3: error: stray '\1' in program
mathfunc.h:3: error: stray '\5' in program
mathfunc.h:3:16: warning: null character(s) ignored
mathfunc.h:3:21: warning: null character(s) ignored
mathfunc.h:3: error: stray '\18' in program
mathfunc.h:3: error: stray '\4' in program
mathfunc.h:3:24: warning: null character(s) ignored
mathfunc.h:3: error: stray '\18' in program
mathfunc.h:3: error: stray '\20' in program
mathfunc.h:3:27: warning: null character(s) ignored
mathfunc.h:3: error: stray '\224' in program
mathfunc.h:3:30: warning: null character(s) ignored
mathfunc.h:3: error: stray '\7' in program
mathfunc.h:3: error: stray '\3' in program
mathfunc.h:3: error: stray '\1' in program
mathfunc.h:3: error: stray '\2' in program
mathfunc.h:3:37: warning: null character(s) ignored
mathfunc.h:3: error: stray '\220' in program
mathfunc.h:3: error: stray '\3' in program
mathfunc.h:3:40: warning: null character(s) ignored
mathfunc.h:3: error: stray '\14' in program
mathfunc.h:3: error: stray '\4' in program
mathfunc.h:3:44: warning: null character(s) ignored

mathfunc.h:3:47: warning: null character(s) ignored
mathfunc.h:3: error: stray '\18' in program
mathfunc.h:3:51: warning: null character(s) ignored
mathfunc.h:3: error: stray '\16' in program
mathfunc.h:3:55: warning: null character(s) ignored
mathfunc.h:3: error: stray '\240' in program
mathfunc.h:3: error: stray '\3' in program
mathfunc.h:3:60: warning: null character(s) ignored
mathfunc.h:3:64: warning: null character(s) ignored
mathfunc.h:3: error: stray '@' in program
mathfunc.h:3: error: stray '\16' in program
mathfunc.h:3:67: warning: null character(s) ignored
mathfunc.h:3: error: stray '\2' in program
mathfunc.h:3:71: warning: null character(s) ignored
mathfunc.h:3: error: stray '\4' in program
mathfunc.h:3:74: warning: null character(s) ignored
mathfunc.h:3: error: stray '\1' in program
mathfunc.h:3:78: warning: null character(s) ignored
mathfunc.h:3: error: stray '\4' in program
mathfunc.h:3:82: warning: null character(s) ignored
mathfunc.h:3: error: stray '\144' in program
mathfunc.h:3: error: stray '\4' in program
mathfunc.h:3:92: warning: null character(s) ignored
mathfunc.h:3: error: stray '\4' in program
mathfunc.h:3:95: warning: null character(s) ignored
mathfunc.h:3: error: stray '\195' in program
mathfunc.h:3: error: stray '\7' in program
mathfunc.h:3:100: warning: null character(s) ignored
mathfunc.h:3: error: stray '\3' in program
mathfunc.h:3:102: warning: null character(s) ignored

mathfunc.h:3: error: stray '\16' in program
mathfunc.h:3:111: warning: null character(s) ignored
mathfunc.h:3: error: stray '\16' in program

mathfunc.h:3:116: warning: null character(s) ignored
mathfunc.h:3: error: stray '\16' in program
mathfunc.h:3:119: warning: null character(s) ignored
mathfunc.h:3: error: stray '\16' in program
mathfunc.h:3:126: warning: null character(s) ignored
mathfunc.h:3: error: stray '\128' in program
mathfunc.h:3: error: stray '\4' in program
mathfunc.h:3:140: warning: null character(s) ignored
mathfunc.h:3: error: stray '\156' in program
mathfunc.h:3: error: stray '\7' in program
mathfunc.h:3:143: warning: null character(s) ignored
mathfunc.h:3:262: warning: null character(s) ignored
mathfunc.h:3: error: stray '\192' in program

mathfunc.h:3: error: stray '\218' in program
mathfunc.h:3: error: stray '\3' in program
mathfunc.h:3:268: warning: null character(s) ignored

mathfunc.h:3: error: stray '\16' in program
mathfunc.h:3:271: warning: null character(s) ignored
mathfunc.h:3: error: stray '\220' in program
mathfunc.h:3: error: stray '\3' in program
mathfunc.h:3:276: warning: null character(s) ignored
mathfunc.h:3: error: stray '\4' in program
mathfunc.h:3:279: warning: null character(s) ignored
mathfunc.h:3: error: stray '`' in program

mathfunc.h:3:294: warning: null character(s) ignored
mathfunc.h:3: error: stray '`' in program
mathfunc.h:3:302: warning: null character(s) ignored
mathfunc.h:3: error: stray '\144' in program
mathfunc.h:3: error: stray '\1' in program
mathfunc.h:3:307: warning: null character(s) ignored
mathfunc.h:3: error: stray '\240' in program
mathfunc.h:3: error: stray '\3' in program
mathfunc.h:3:312: warning: null character(s) ignored
mathfunc.h:3: error: stray '\2' in program
mathfunc.h:3:315: warning: null character(s) ignored
mathfunc.h:3: error: stray '\224' in program
mathfunc.h:3: error: stray '\3' in program
mathfunc.h:3:320: warning: null character(s) ignored
mathfunc.h:3:334: warning: null character(s) ignored
mathfunc.h:3: error: stray '@' in program
mathfunc.h:3: error: stray '\192' in program
mathfunc.h:3:343: warning: null character(s) ignored
mathfunc.h:3:347: warning: null character(s) ignored
mathfunc.h:3: error: stray '\4' in program

mathfunc.h:3:352: warning: null character(s) ignored
mathfunc.h:3:355: warning: null character(s) ignored
mathfunc.h:3: error: stray '\226' in program
mathfunc.h:3: error: stray '\3' in program
mathfunc.h:3:360: warning: null character(s) ignored
mathfunc.h:3:374: warning: null character(s) ignored
mathfunc.h:3: error: stray '@' in program
mathfunc.h:3: error: stray '@' in program
mathfunc.h:3:381: warning: null character(s) ignored
mathfunc.h:3: error: stray '\224' in program
mathfunc.h:3:387: warning: null character(s) ignored
mathfunc.h:3: error: stray '\4' in program
mathfunc.h:3:392: warning: null character(s) ignored
mathfunc.h:3: error: stray '\128' in program
mathfunc.h:3:414: warning: null character(s) ignored
mathfunc.h:3: error: stray '\192' in program
mathfunc.h:3:423: warning: null character(s) ignored
mathfunc.h:3: error: stray '\156' in program
mathfunc.h:3: error: stray '\7' in program
mathfunc.h:3:427: warning: null character(s) ignored
mathfunc.h:3: error: stray '\128' in program
mathfunc.h:3: error: stray '\4' in program
mathfunc.h:3:432: warning: null character(s) ignored
mathfunc.h:3: error: stray '\8' in program
mathfunc.h:3:435: warning: null character(s) ignored
mathfunc.h:4: error: stray '\4' in program
mathfunc.h:4:2: warning: null character(s) ignored
mathfunc.h:4:16: warning: null character(s) ignored
mathfunc.h:4: error: stray '@' in program
mathfunc.h:4: error: stray '\192' in program
mathfunc.h:4:19: warning: null character(s) ignored
mathfunc.h:4: error: stray '\137' in program
mathfunc.h:4: error: stray '\229' in program
mathfunc.h:4: error: stray '\131' in program
mathfunc.h:4: error: stray '\236' in program
mathfunc.h:4: error: stray '\24' in program
mathfunc.h:4: error: stray '\137' in program
mathfunc.h:4: error: stray '\248' in program
mathfunc.h:4: error: stray '\139' in program

mathfunc.h:4: error: stray '\8' in program
mathfunc.h:4: error: stray '\219' in program
mathfunc.h:4: error: stray '\137' in program
mathfunc.h:4: error: stray '\252' in program
mathfunc.h:4: error: stray '\139' in program
mathfunc.h:4: error: stray '\2' in program

mathfunc.h:4: error: stray '\246' in program
mathfunc.h:4: error: stray '\139' in program
mathfunc.h:4:489: warning: null character(s) ignored
mathfunc.h:4: error: stray '\145' in program

mathfunc.h:4:492: warning: null character(s) ignored
mathfunc.h:4: error: stray '\192' in program
mathfunc.h:4: error: stray '\141' in program
mathfunc.h:4:499: warning: null character(s) ignored
mathfunc.h:4: error: stray '\192' in program
mathfunc.h:4: error: stray '\190' in program
mathfunc.h:4: error: stray '\1' in program

mathfunc.h:4:506: warning: null character(s) ignored
mathfunc.h:4: error: stray '\199' in program
mathfunc.h:4: error: stray '\4' in program

mathfunc.h:4: error: stray '\8' in program
mathfunc.h:4:513: warning: null character(s) ignored
mathfunc.h:4: error: stray '\192' in program

mathfunc.h:4: error: stray '\137' in program
mathfunc.h:4: error: stray '\4' in program
mathfunc.h:4: error: stray '\232' in program
mathfunc.h:4: error: stray '\247' in program
mathfunc.h:4:525: warning: null character(s) ignored
mathfunc.h:4: error: stray '\131' in program
mathfunc.h:4: error: stray '\248' in program
mathfunc.h:4: error: stray '\1' in program
mathfunc.h:4: error: stray '\133' in program
mathfunc.h:4: error: stray '\192' in program

mathfunc.h:4: error: stray '\199' in program
mathfunc.h:4: error: stray '\4' in program
mathfunc.h:4: error: stray '\8' in program
mathfunc.h:4:540: warning: null character(s) ignored
mathfunc.h:4: error: stray '\255' in program
mathfunc.h:4: error: stray '\208' in program
mathfunc.h:4: error: stray '\187' in program
mathfunc.h:4: error: stray '\255' in program
mathfunc.h:4: error: stray '\255' in program
mathfunc.h:4: error: stray '\255' in program

mathfunc.h:4: error: stray '\255' in program
mathfunc.h:4: error: stray '\137' in program
mathfunc.h:4: error: stray '\216' in program
mathfunc.h:4: error: stray '\139' in program
mathfunc.h:4: error: stray '\252' in program
mathfunc.h:4: error: stray '\139' in program
mathfunc.h:4: error: stray '\248' in program
mathfunc.h:4: error: stray '\137' in program

mathfunc.h:4: error: stray '\236' in program
mathfunc.h:4: error: stray '\194' in program
mathfunc.h:4: error: stray '\4' in program
mathfunc.h:4:563: warning: null character(s) ignored
mathfunc.h:4: error: stray '\147' in program
mathfunc.h:4:566: warning: null character(s) ignored
mathfunc.h:4: error: stray '\192' in program

mathfunc.h:4: error: stray '\189' in program
mathfunc.h:4: error: stray '\148' in program
mathfunc.h:4:573: warning: null character(s) ignored
mathfunc.h:4: error: stray '\192' in program

mathfunc.h:4: error: stray '\187' in program
mathfunc.h:4: error: stray '\137' in program
mathfunc.h:4: error: stray '\216' in program
mathfunc.h:4: error: stray '\139' in program
mathfunc.h:4: error: stray '\252' in program
mathfunc.h:4: error: stray '\139' in program
mathfunc.h:4: error: stray '\248' in program
mathfunc.h:4: error: stray '\137' in program

mathfunc.h:4: error: stray '\236' in program
mathfunc.h:4: error: stray '\194' in program
mathfunc.h:4: error: stray '\4' in program
mathfunc.h:4:591: warning: null character(s) ignored
mathfunc.h:4: error: stray '\141' in program
mathfunc.h:4:594: warning: null character(s) ignored
mathfunc.h:4: error: stray '\5' in program
mathfunc.h:4:597: warning: null character(s) ignored
mathfunc.h:4: error: stray '\192' in program
mathfunc.h:4: error: stray '\232' in program

mathfunc.h:4: error: stray '\199' in program
mathfunc.h:4: error: stray '\4' in program
mathfunc.h:4:605: warning: null character(s) ignored

mathfunc.h:4: error: stray '\246' in program
mathfunc.h:4: error: stray '\137' in program
mathfunc.h:4: error: stray '\4' in program
mathfunc.h:4: error: stray '\232' in program
mathfunc.h:4: error: stray '\247' in program
mathfunc.h:4: error: stray '\246' in program
mathfunc.h:4:618: warning: null character(s) ignored
mathfunc.h:4: error: stray '\131' in program
mathfunc.h:4: error: stray '\248' in program
mathfunc.h:4: error: stray '\1' in program

mathfunc.h:4: error: stray '\133' in program
mathfunc.h:4: error: stray '\192' in program
mathfunc.h:4: error: stray '\205' in program
mathfunc.h:4: error: stray '\199' in program
mathfunc.h:4: error: stray '\4' in program
mathfunc.h:4:632: warning: null character(s) ignored
mathfunc.h:4: error: stray '\255' in program
mathfunc.h:4: error: stray '\208' in program
mathfunc.h:4: error: stray '\235' in program
mathfunc.h:4: error: stray '\161' in program
mathfunc.h:4: error: stray '\199' in program

mathfunc.h:4: error: stray '\4' in program
mathfunc.h:4: error: stray '\8' in program
mathfunc.h:4:644: warning: null character(s) ignored
mathfunc.h:4: error: stray '\187' in program
mathfunc.h:4: error: stray '\1' in program
mathfunc.h:4:649: warning: null character(s) ignored
mathfunc.h:4: error: stray '\137' in program
mathfunc.h:4: error: stray '\' in program
mathfunc.h:4: error: stray '\4' in program
mathfunc.h:4: error: stray '\232' in program
mathfunc.h:4: error: stray '\206' in program
mathfunc.h:4: error: stray '\246' in program
mathfunc.h:4:659: warning: null character(s) ignored
mathfunc.h:4: error: stray '\133' in program
mathfunc.h:4: error: stray '\246' in program
mathfunc.h:4: error: stray '\136' in program
mathfunc.h:4: error: stray '\232' in program
mathfunc.h:4: error: stray '\165' in program
mathfunc.h:4: error: stray '\188' in program
mathfunc.h:4:668: warning: null character(s) ignored
mathfunc.h:4: error: stray '\187' in program
mathfunc.h:4: error: stray '\255' in program
mathfunc.h:4: error: stray '\255' in program
mathfunc.h:4: error: stray '\255' in program
mathfunc.h:4: error: stray '\255' in program
mathfunc.h:4: error: stray '\235' in program
mathfunc.h:4: error: stray '\129' in program
mathfunc.h:4: error: stray '\199' in program
mathfunc.h:4: error: stray '\4' in program
mathfunc.h:4:680: warning: null character(s) ignored
mathfunc.h:4: error: stray '\185' in program
mathfunc.h:4: error: stray '\1' in program
mathfunc.h:4:686: warning: null character(s) ignored
mathfunc.h:4: error: stray '\187' in program
mathfunc.h:4: error: stray '\255' in program
mathfunc.h:4: error: stray '\255' in program
mathfunc.h:4: error: stray '\255' in program
mathfunc.h:4: error: stray '\255' in program
mathfunc.h:4: error: stray '\137' in program
mathfunc.h:4: error: stray '\4' in program
mathfunc.h:4: error: stray '\232' in program
mathfunc.h:4: error: stray '\164' in program
mathfunc.h:4: error: stray '\246' in program
mathfunc.h:4:701: warning: null character(s) ignored
mathfunc.h:4: error: stray '\233' in program
mathfunc.h:4: error: stray '\255' in program
mathfunc.h:4: error: stray '\255' in program
mathfunc.h:4: error: stray '\255' in program
mathfunc.h:4: error: stray '\235' in program
mathfunc.h:5: error: stray '\144' in program
mathfunc.h:5: error: stray '\144' in program
mathfunc.h:5: error: stray '\144' in program
mathfunc.h:5: error: stray '\144' in program
mathfunc.h:5: error: stray '\144' in program
mathfunc.h:5: error: stray '\144' in program
mathfunc.h:5: error: stray '\144' in program
mathfunc.h:5: error: stray '\144' in program
mathfunc.h:5: error: stray '\144' in program
mathfunc.h:5: error: stray '\144' in program
mathfunc.h:5: error: stray '\144' in program
mathfunc.h:5: error: stray '\144' in program
mathfunc.h:5: error: stray '\144' in program
mathfunc.h:5: error: stray '\137' in program
mathfunc.h:5: error: stray '\229' in program
mathfunc.h:5: error: stray '\131' in program
mathfunc.h:5: error: stray '\236' in program
mathfunc.h:5: error: stray '\141' in program
mathfunc.h:5: error: stray '\248' in program
mathfunc.h:5: error: stray '\199' in program
mathfunc.h:5: error: stray '\4' in program
mathfunc.h:5:27: warning: null character(s) ignored
mathfunc.h:5: error: stray '\16' in program
mathfunc.h:5:30: warning: null character(s) ignored

mathfunc.h:5: error: stray '@' in program
mathfunc.h:5: error: stray '\232' in program
mathfunc.h:5: error: stray '\250' in program
mathfunc.h:5: error: stray '\248' in program
mathfunc.h:5:34: warning: null character(s) ignored
mathfunc.h:5: error: stray '\131' in program
mathfunc.h:5: error: stray '\236' in program
mathfunc.h:5: error: stray '\4' in program
mathfunc.h:5: error: stray '\232' in program

mathfunc.h:5: error: stray '\188' in program
mathfunc.h:5:42: warning: null character(s) ignored
mathfunc.h:5: error: stray '\199' in program
mathfunc.h:5: error: stray '\248' in program
mathfunc.h:5:47: warning: null character(s) ignored
mathfunc.h:5: error: stray '\184' in program
mathfunc.h:5:52: warning: null character(s) ignored
mathfunc.h:5:53: invalid suffix "D" on integer constant

mathfunc.h:5:55: warning: null character(s) ignored
mathfunc.h:5: error: stray '\141' in program
mathfunc.h:5: error: stray '\244' in program
mathfunc.h:5: error: stray '\137' in program
mathfunc.h:5: error: stray '\' in program
mathfunc.h:5: error: stray '\16' in program
mathfunc.h:5: error: stray '\139' in program
mathfunc.h:6: error: stray '\176' in program
mathfunc.h:6: error: stray '\240' in program
mathfunc.h:6:4: warning: null character(s) ignored
mathfunc.h:6: error: stray '\137' in program
mathfunc.h:6: error: stray '\4' in program
mathfunc.h:6: error: stray '\137' in program
mathfunc.h:6: error: stray '\8' in program
mathfunc.h:6: error: stray '\137' in program
mathfunc.h:6: error: stray '\199' in program
mathfunc.h:6: error: stray '\4' in program
mathfunc.h:6: error: stray '\4' in program
mathfunc.h:6:21: invalid suffix "D" on integer constant
mathfunc.h:6:23: warning: null character(s) ignored
mathfunc.h:6: error: stray '\232' in program
mathfunc.h:6: error: stray '\246' in program
mathfunc.h:6:27: warning: null character(s) ignored
mathfunc.h:6: error: stray '\161' in program
mathfunc.h:6:33: warning: null character(s) ignored
mathfunc.h:6: error: stray '\133' in program
mathfunc.h:6: error: stray '\192' in program
mathfunc.h:6: error: stray '\163' in program
mathfunc.h:6: error: stray '\192' in program
mathfunc.h:6: error: stray '\240' in program
mathfunc.h:6:42: warning: null character(s) ignored
mathfunc.h:6: error: stray '\139' in program
mathfunc.h:6: error: stray '\21' in program
mathfunc.h:6: error: stray '\20' in program
mathfunc.h:6: error: stray '\130' in program

mathfunc.h:6:48: warning: null character(s) ignored
mathfunc.h:6: error: stray '\133' in program
mathfunc.h:6: error: stray '\210' in program
mathfunc.h:6: error: stray '\15' in program
mathfunc.h:6: error: stray '\133' in program
mathfunc.h:6: error: stray '\139' in program
mathfunc.h:6:54: warning: null character(s) ignored
mathfunc.h:6: error: stray '\131' in program
mathfunc.h:6: error: stray '\250' in program
mathfunc.h:6: error: stray '\224' in program
mathfunc.h:6: error: stray '\161' in program
mathfunc.h:6:66: warning: null character(s) ignored
mathfunc.h:6: error: stray '\137' in program
mathfunc.h:6: error: stray '\4' in program
mathfunc.h:6: error: stray '\139' in program
mathfunc.h:6: error: stray '\29' in program
mathfunc.h:6: error: stray '\20' in program
mathfunc.h:6: error: stray '\130' in program
mathfunc.h:6:76: warning: null character(s) ignored
mathfunc.h:6: error: stray '\139' in program
mathfunc.h:6: error: stray '\137' in program
mathfunc.h:6: error: stray '\232' in program
mathfunc.h:6: error: stray '\246' in program
mathfunc.h:6:86: warning: null character(s) ignored
mathfunc.h:6: error: stray '\139' in program
mathfunc.h:6: error: stray '\21' in program
mathfunc.h:6: error: stray '\20' in program
mathfunc.h:6: error: stray '\130' in program
mathfunc.h:6:93: warning: null character(s) ignored
mathfunc.h:6: error: stray '\131' in program
mathfunc.h:6: error: stray '\250' in program
mathfunc.h:6: error: stray '\192' in program
mathfunc.h:6: error: stray '\27' in program

mathfunc.h:6: error: stray '\139' in program
mathfunc.h:6: error: stray '\29' in program
mathfunc.h:6:104: warning: null character(s) ignored
mathfunc.h:6: error: stray '\137' in program
mathfunc.h:6: error: stray '\' in program
mathfunc.h:6: error: stray '\4' in program
mathfunc.h:6: error: stray '\139' in program
mathfunc.h:7: error: stray '\20' in program
mathfunc.h:7: error: stray '\130' in program
mathfunc.h:7:4: warning: null character(s) ignored
mathfunc.h:7: error: stray '\139' in program
mathfunc.h:7: error: stray '\137' in program
mathfunc.h:7: error: stray '\20' in program
mathfunc.h:7: error: stray '\232' in program
mathfunc.h:7:12: warning: null character(s) ignored
mathfunc.h:7: error: stray '\246' in program
mathfunc.h:7:14: warning: null character(s) ignored
mathfunc.h:7: error: stray '\232' in program

mathfunc.h:7: error: stray '\235' in program
mathfunc.h:7: error: stray '\245' in program
mathfunc.h:7:19: warning: null character(s) ignored
mathfunc.h:7: error: stray '\139' in program
mathfunc.h:7: error: stray '\29' in program
mathfunc.h:7: error: stray '\192' in program
mathfunc.h:7: error: stray '\240' in program
mathfunc.h:7:26: warning: null character(s) ignored
mathfunc.h:7: error: stray '\137' in program
mathfunc.h:7: error: stray '\24' in program
mathfunc.h:7: error: stray '\232' in program
mathfunc.h:7: error: stray '\187' in program
mathfunc.h:7:32: warning: null character(s) ignored
mathfunc.h:7: error: stray '\131' in program
mathfunc.h:7: error: stray '\228' in program
mathfunc.h:7: error: stray '\240' in program
mathfunc.h:7: error: stray '\232' in program
mathfunc.h:7: error: stray '\182' in program
mathfunc.h:7: error: stray '\245' in program
mathfunc.h:7:40: warning: null character(s) ignored
mathfunc.h:7: error: stray '\139' in program

mathfunc.h:7: error: stray '\8' in program
mathfunc.h:7: error: stray '\137' in program
mathfunc.h:7: error: stray '\8' in program
mathfunc.h:7: error: stray '\139' in program
mathfunc.h:7: error: stray '\21' in program
mathfunc.h:7:50: warning: null character(s) ignored
mathfunc.h:7:51: invalid suffix "D" on integer constant
mathfunc.h:7:53: warning: null character(s) ignored
mathfunc.h:7: error: stray '\137' in program
mathfunc.h:7: error: stray '\4' in program
mathfunc.h:7: error: stray '\161' in program
mathfunc.h:7: error: stray '\4' in program
mathfunc.h:7:60: invalid suffix "D" on integer constant
mathfunc.h:7:62: warning: null character(s) ignored
mathfunc.h:7: error: stray '\137' in program
mathfunc.h:7: error: stray '\4' in program

mathfunc.h:7: error: stray '\232' in program
mathfunc.h:7: error: stray '\157' in program
mathfunc.h:7: error: stray '\2' in program
mathfunc.h:7:69: warning: null character(s) ignored
mathfunc.h:7: error: stray '\137' in program
mathfunc.h:7: error: stray '\195' in program
mathfunc.h:7: error: stray '\232' in program
mathfunc.h:7: error: stray '\130' in program
mathfunc.h:7: error: stray '\245' in program
mathfunc.h:7:76: warning: null character(s) ignored
mathfunc.h:7: error: stray '\137' in program
mathfunc.h:7: error: stray '\28' in program
mathfunc.h:7: error: stray '\232' in program
mathfunc.h:7: error: stray '\248' in program
mathfunc.h:7:84: warning: null character(s) ignored
mathfunc.h:7: error: stray '\137' in program
mathfunc.h:7: error: stray '\4' in program
mathfunc.h:7: error: stray '\139' in program
mathfunc.h:7: error: stray '\21' in program
mathfunc.h:7: error: stray '\20' in program
mathfunc.h:7: error: stray '\130' in program
mathfunc.h:7:95: warning: null character(s) ignored
mathfunc.h:7: error: stray '\139' in program
mathfunc.h:7: error: stray '\16' in program
mathfunc.h:7: error: stray '\137' in program
mathfunc.h:7: error: stray '\4' in program
mathfunc.h:7: error: stray '\232' in program
mathfunc.h:7: error: stray '\165' in program
mathfunc.h:7: error: stray '\245' in program
mathfunc.h:7:105: warning: null character(s) ignored
mathfunc.h:7: error: stray '\139' in program
mathfunc.h:7: error: stray '\21' in program
mathfunc.h:7: error: stray '\20' in program
mathfunc.h:7: error: stray '\130' in program
mathfunc.h:7:112: warning: null character(s) ignored
mathfunc.h:7: error: stray '\233' in program
mathfunc.h:7: error: stray '\255' in program
mathfunc.h:7: error: stray '\255' in program
mathfunc.h:7: error: stray '\255' in program
mathfunc.h:7: error: stray '\141' in program

mathfunc.h:7:120: warning: null character(s) ignored
mathfunc.h:7: error: stray '\141' in program
mathfunc.h:7: error: stray '\188' in program
mathfunc.h:7:123: warning: null character(s) preserved in literal
mathfunc.h:7: error: missing terminating ' character
mathfunc.h:8: error: stray '\130' in program
mathfunc.h:8:4: warning: null character(s) ignored
mathfunc.h:8: error: stray '\137' in program
mathfunc.h:8: error: stray '\229' in program
mathfunc.h:8: error: stray '\255' in program
mathfunc.h:8: error: stray '\225' in program
mathfunc.h:8: error: stray '\141' in program
mathfunc.h:8:13: warning: null character(s) ignored
mathfunc.h:8: error: stray '\139' in program
mathfunc.h:9: error: stray '\130' in program
mathfunc.h:9:4: warning: null character(s) ignored
mathfunc.h:9: error: stray '\137' in program
mathfunc.h:9: error: stray '\229' in program
mathfunc.h:9: error: stray '\255' in program
mathfunc.h:9: error: stray '\225' in program

mathfunc.h:9: error: stray '\144' in program
mathfunc.h:9: error: stray '\144' in program
mathfunc.h:9: error: stray '\144' in program
mathfunc.h:9: error: stray '\144' in program
mathfunc.h:9: error: stray '\137' in program
mathfunc.h:9: error: stray '\229' in program
mathfunc.h:9: error: stray '\233' in program
mathfunc.h:9: error: stray '\23' in program
mathfunc.h:9: error: stray '\189' in program
mathfunc.h:9:21: warning: null character(s) ignored
mathfunc.h:9: error: stray '\144' in program

mathfunc.h:9: error: stray '\144' in program
mathfunc.h:9: error: stray '\144' in program
mathfunc.h:9: error: stray '\144' in program
mathfunc.h:9: error: stray '\144' in program
mathfunc.h:9: error: stray '\144' in program
mathfunc.h:9: error: stray '\144' in program
mathfunc.h:9: error: stray '\137' in program
mathfunc.h:9: error: stray '\229' in program

mathfunc.h:9: error: stray '\131' in program
mathfunc.h:9: error: stray '\236' in program
mathfunc.h:9: error: stray '\139' in program
mathfunc.h:9: error: stray '\16' in program
mathfunc.h:9: error: stray '\137' in program
mathfunc.h:9: error: stray '\4' in program
mathfunc.h:9: error: stray '\232' in program
mathfunc.h:9: error: stray '\191' in program
mathfunc.h:10: error: stray '\1' in program
mathfunc.h:10:2: warning: null character(s) ignored
mathfunc.h:10: error: stray '\137' in program
mathfunc.h:10: error: stray '\252' in program
mathfunc.h:10: error: stray '\139' in program
mathfunc.h:10: error: stray '\137' in program
mathfunc.h:10: error: stray '\244' in program
mathfunc.h:10: error: stray '\141' in program
mathfunc.h:10: error: stray '\244' in program
mathfunc.h:10: error: stray '\137' in program
mathfunc.h:10: error: stray '\4' in program
mathfunc.h:10: error: stray '\141' in program
mathfunc.h:10: error: stray '\252' in program
mathfunc.h:10: error: stray '\137' in program
mathfunc.h:10: error: stray '\4' in program
mathfunc.h:10: error: stray '\232' in program
mathfunc.h:10: error: stray '\146' in program
mathfunc.h:10: error: stray '\156' in program
mathfunc.h:10: error: stray '\3' in program
mathfunc.h:10:31: warning: null character(s) ignored
mathfunc.h:10: error: stray '\139' in program
mathfunc.h:10:33: warning: null character(s) ignored
mathfunc.h:10: error: stray '\137' in program
mathfunc.h:10: error: stray '\248' in program
mathfunc.h:10: error: stray '\139' in program

mathfunc.h:10: error: stray '\252' in program
mathfunc.h:10: error: stray '\137' in program
mathfunc.h:10: error: stray '\240' in program
mathfunc.h:10: error: stray '\198' in program
mathfunc.h:10: error: stray '\239' in program
mathfunc.h:10: error: stray '\1' in program
mathfunc.h:10: error: stray '\199' in program
mathfunc.h:10: error: stray '\232' in program
mathfunc.h:10:50: warning: null character(s) ignored
mathfunc.h:10: error: stray '\139' in program
mathfunc.h:10: error: stray '\232' in program
mathfunc.h:10: error: stray '\248' in program
mathfunc.h:10: error: stray '\128' in program
mathfunc.h:10: error: stray '\239' in program
mathfunc.h:10:65: warning: null character(s) ignored
mathfunc.h:10: error: stray '\139' in program
mathfunc.h:10: error: stray '\240' in program
mathfunc.h:10: error: stray '\137' in program
mathfunc.h:10: error: stray '\4' in program
mathfunc.h:10: error: stray '\139' in program
mathfunc.h:10: error: stray '\16' in program
mathfunc.h:10: error: stray '\137' in program
mathfunc.h:10: error: stray '\4' in program

mathfunc.h:10: error: stray '\232' in program
mathfunc.h:10: error: stray '\156' in program
mathfunc.h:10: error: stray '\19' in program
mathfunc.h:10: error: stray '\1' in program
mathfunc.h:10:85: warning: null character(s) ignored
mathfunc.h:10: error: stray '\137' in program
mathfunc.h:10: error: stray '\193' in program
mathfunc.h:10: error: stray '\139' in program
mathfunc.h:10: error: stray '\8' in program
mathfunc.h:10: error: stray '\139' in program
mathfunc.h:10: error: stray '\232' in program
mathfunc.h:10: error: stray '\1' in program
mathfunc.h:10: error: stray '\194' in program
mathfunc.h:10: error: stray '\15' in program
mathfunc.h:10: error: stray '\182' in program

mathfunc.h:10: error: stray '\1' in program
mathfunc.h:10: error: stray '\2' in program
mathfunc.h:10: error: stray '\15' in program
mathfunc.h:10: error: stray '\148' in program
mathfunc.h:10: error: stray '\192' in program
mathfunc.h:10: error: stray '\136' in program
mathfunc.h:10: error: stray '\239' in program
mathfunc.h:10: error: stray '\141' in program
mathfunc.h:10: error: stray '\240' in program
mathfunc.h:10: error: stray '\255' in program
mathfunc.h:10: error: stray '\8' in program
mathfunc.h:10: error: stray '\141' in program
mathfunc.h:10: error: stray '\232' in program
mathfunc.h:10: error: stray '\255' in program
mathfunc.h:10:116: warning: null character(s) ignored
mathfunc.h:10: error: stray '\235' in program
mathfunc.h:10: error: stray '\191' in program

mathfunc.h:10: error: stray '\131' in program
mathfunc.h:10: error: stray '\240' in program
mathfunc.h:10:122: warning: null character(s) ignored
mathfunc.h:10: error: stray '\128' in program
mathfunc.h:10: error: stray '\239' in program
mathfunc.h:10:128: warning: null character(s) ignored
mathfunc.h:10: error: stray '\139' in program
mathfunc.h:10: error: stray '\240' in program
mathfunc.h:10: error: stray '\137' in program
mathfunc.h:10: error: stray '\4' in program
mathfunc.h:10: error: stray '\139' in program
mathfunc.h:10: error: stray '\16' in program
mathfunc.h:10: error: stray '\137' in program

mathfunc.h:10: error: stray '\4' in program
mathfunc.h:10: error: stray '\232' in program
mathfunc.h:10: error: stray '\19' in program
mathfunc.h:10: error: stray '\1' in program
mathfunc.h:10:148: warning: null character(s) ignored
mathfunc.h:10: error: stray '\137' in program
mathfunc.h:10: error: stray '\193' in program
mathfunc.h:10: error: stray '\139' in program
mathfunc.h:10: error: stray '\8' in program
mathfunc.h:10: error: stray '\139' in program
mathfunc.h:10: error: stray '\248' in program
mathfunc.h:10: error: stray '\1' in program
mathfunc.h:10: error: stray '\194' in program
mathfunc.h:10: error: stray '\15' in program

mathfunc.h:10: error: stray '\182' in program
mathfunc.h:10: error: stray '\1' in program
mathfunc.h:10: error: stray '\2' in program
mathfunc.h:10: error: stray '\15' in program
mathfunc.h:10: error: stray '\148' in program
mathfunc.h:10: error: stray '\192' in program
mathfunc.h:10: error: stray '\136' in program
mathfunc.h:10: error: stray '\239' in program
mathfunc.h:10: error: stray '\141' in program
mathfunc.h:10: error: stray '\240' in program
mathfunc.h:10: error: stray '\255' in program

mathfunc.h:10: error: stray '\8' in program
mathfunc.h:10: error: stray '\235' in program
mathfunc.h:10: error: stray '\198' in program
mathfunc.h:10: error: stray '\199' in program
mathfunc.h:10: error: stray '\4' in program
mathfunc.h:10:181: warning: null character(s) ignored
mathfunc.h:10: error: stray '\139' in program
mathfunc.h:10: error: stray '\16' in program
mathfunc.h:10: error: stray '\137' in program
mathfunc.h:10: error: stray '\4' in program
mathfunc.h:10: error: stray '\232' in program
mathfunc.h:10: error: stray '\19' in program
mathfunc.h:10: error: stray '\1' in program
mathfunc.h:10:195: warning: null character(s) ignored
mathfunc.h:10: error: stray '\137' in program
mathfunc.h:10: error: stray '\193' in program
mathfunc.h:10: error: stray '\139' in program
mathfunc.h:10: error: stray '\8' in program
mathfunc.h:10: error: stray '\139' in program
mathfunc.h:10: error: stray '\248' in program

mathfunc.h:10: error: stray '\1' in program
mathfunc.h:10: error: stray '\194' in program
mathfunc.h:10: error: stray '\15' in program
mathfunc.h:10: error: stray '\182' in program
mathfunc.h:10: error: stray '\1' in program
mathfunc.h:10: error: stray '\2' in program
mathfunc.h:10: error: stray '\127' in program
mathfunc.h:10: error: stray '\15' in program

mathfunc.h:10: error: stray '\182' in program
mathfunc.h:10: error: stray '\239' in program
mathfunc.h:10: error: stray '\131' in program
mathfunc.h:10: error: stray '\224' in program
mathfunc.h:10: error: stray '\1' in program
mathfunc.h:10: error: stray '\136' in program
mathfunc.h:10: error: stray '\231' in program
mathfunc.h:10: error: stray '\235' in program
mathfunc.h:10: error: stray '\4' in program
mathfunc.h:10: error: stray '\198' in program
mathfunc.h:10: error: stray '\231' in program
mathfunc.h:10:228: warning: null character(s) ignored
mathfunc.h:10: error: stray '\15' in program
mathfunc.h:10: error: stray '\182' in program
mathfunc.h:10: error: stray '\231' in program
mathfunc.h:10: error: stray '\136' in program
mathfunc.h:10: error: stray '\239' in program
mathfunc.h:10: error: stray '\15' in program

mathfunc.h:10: error: stray '\182' in program
mathfunc.h:10: error: stray '\239' in program
mathfunc.h:10: error: stray '\201' in program
mathfunc.h:10: error: stray '\195' in program
mathfunc.h:10: error: stray '\137' in program
mathfunc.h:10: error: stray '\229' in program
mathfunc.h:10: error: stray '\131' in program
mathfunc.h:10: error: stray '\236' in program
mathfunc.h:10: error: stray '\221' in program
mathfunc.h:10: error: stray '\5' in program
mathfunc.h:10:250: warning: null character(s) ignored
mathfunc.h:10:253: warning: null character(s) ignored
mathfunc.h:10: error: stray '\221' in program
mathfunc.h:10: error: stray '\248' in program

mathfunc.h:10: error: stray '\221' in program
mathfunc.h:10: error: stray '\8' in program
mathfunc.h:10: error: stray '\220' in program
mathfunc.h:10: error: stray '\248' in program
mathfunc.h:10: error: stray '\221' in program
mathfunc.h:10: error: stray '\240' in program
mathfunc.h:10: error: stray '\221' in program
mathfunc.h:10: error: stray '\240' in program
mathfunc.h:10: error: stray '\220' in program
mathfunc.h:10: error: stray '\16' in program
mathfunc.h:10: error: stray '\221' in program
mathfunc.h:10: error: stray '\232' in program
mathfunc.h:10: error: stray '\199' in program

mathfunc.h:10: error: stray '\8' in program
mathfunc.h:10: error: stray '\1' in program
mathfunc.h:10:280: warning: null character(s) ignored
mathfunc.h:10: error: stray '\221' in program

mathfunc.h:10: error: stray '\232' in program
mathfunc.h:10: error: stray '\221' in program
mathfunc.h:10: error: stray '\28' in program
mathfunc.h:10: error: stray '\232' in program
mathfunc.h:10:291: warning: null character(s) ignored
mathfunc.h:10: error: stray '\221' in program
mathfunc.h:10: error: stray '\232' in program

mathfunc.h:10: error: stray '\221' in program
mathfunc.h:10: error: stray '\232' in program
mathfunc.h:10: error: stray '\201' in program
mathfunc.h:10: error: stray '\195' in program
mathfunc.h:10: error: stray '\137' in program
mathfunc.h:10: error: stray '\229' in program
mathfunc.h:10: error: stray '\131' in program
mathfunc.h:10: error: stray '\236' in program
mathfunc.h:10: error: stray '\221' in program
mathfunc.h:10: error: stray '\5' in program
mathfunc.h:10: error: stray '\8' in program
mathfunc.h:10:311: warning: null character(s) ignored
mathfunc.h:10:313: warning: null character(s) ignored
mathfunc.h:10: error: stray '\221' in program
mathfunc.h:10: error: stray '\248' in program
mathfunc.h:10: error: stray '\221' in program
mathfunc.h:10: error: stray '\16' in program
mathfunc.h:10: error: stray '\220' in program
mathfunc.h:10: error: stray '\8' in program
mathfunc.h:10: error: stray '\221' in program
mathfunc.h:10: error: stray '\240' in program
mathfunc.h:10: error: stray '\221' in program
mathfunc.h:10: error: stray '\240' in program
mathfunc.h:10: error: stray '\221' in program
mathfunc.h:10: error: stray '\5' in program
mathfunc.h:10: error: stray '\8' in program
mathfunc.h:10:332: warning: null character(s) ignored
mathfunc.h:10:334: warning: null character(s) ignored
mathfunc.h:10: error: stray '\222' in program
mathfunc.h:10: error: stray '\249' in program
mathfunc.h:10: error: stray '\221' in program
mathfunc.h:10: error: stray '\232' in program
mathfunc.h:10: error: stray '\199' in program
mathfunc.h:10: error: stray '\8' in program
mathfunc.h:10: error: stray '\1' in program
mathfunc.h:10:345: warning: null character(s) ignored
mathfunc.h:10: error: stray '\221' in program
mathfunc.h:10: error: stray '\232' in program
mathfunc.h:10: error: stray '\221' in program
mathfunc.h:10: error: stray '\28' in program

mathfunc.h:10: error: stray '\232' in program
mathfunc.h:10:355: warning: null character(s) ignored
mathfunc.h:10: error: stray '\221' in program
mathfunc.h:10: error: stray '\232' in program
mathfunc.h:10: error: stray '\221' in program
mathfunc.h:10: error: stray '\232' in program
mathfunc.h:10: error: stray '\201' in program
mathfunc.h:10: error: stray '\195' in program

mathfunc.h:10: error: stray '\144' in program
mathfunc.h:10: error: stray '\137' in program
mathfunc.h:10: error: stray '\229' in program
mathfunc.h:10: error: stray '\131' in program
mathfunc.h:10: error: stray '\236' in program
mathfunc.h:10: error: stray '\24' in program
mathfunc.h:10: error: stray '\199' in program
mathfunc.h:10: error: stray '\252' in program
mathfunc.h:11:1: warning: null character(s) ignored
mathfunc.h:11: error: stray '\199' in program
mathfunc.h:11: error: stray '\248' in program
mathfunc.h:11: error: stray '\1' in program
mathfunc.h:11:8: warning: null character(s) ignored
mathfunc.h:11: error: stray '\139' in program
mathfunc.h:11: error: stray '\248' in program
mathfunc.h:11: error: stray '\16' in program
mathfunc.h:11: error: stray '\22' in program
mathfunc.h:11: error: stray '\139' in program
mathfunc.h:11: error: stray '\252' in program
mathfunc.h:11: error: stray '\137' in program
mathfunc.h:11: error: stray '\208' in program
mathfunc.h:11: error: stray '\193' in program
mathfunc.h:11: error: stray '\224' in program

mathfunc.h:11: error: stray '\2' in program
mathfunc.h:11: error: stray '\1' in program
mathfunc.h:11: error: stray '\208' in program
mathfunc.h:11: error: stray '\1' in program
mathfunc.h:11: error: stray '\192' in program
mathfunc.h:11: error: stray '\137' in program
mathfunc.h:11: error: `U' does not name a type
mathfunc.h:11: error: stray '\252' in program
mathfunc.h:11: error: stray '\141' in program
mathfunc.h:11: error: stray '\248' in program
mathfunc.h:11: error: stray '\255' in program

mathfunc.h:11:38: warning: null character(s) ignored
mathfunc.h:11: error: stray '\235' in program
mathfunc.h:11: error: stray '\226' in program
mathfunc.h:11: error: stray '\219' in program
mathfunc.h:11: error: stray '\252' in program
mathfunc.h:11: error: stray '\221' in program
mathfunc.h:11: error: stray '\8' in program
mathfunc.h:11: error: stray '\222' in program
mathfunc.h:11: error: stray '\201' in program
mathfunc.h:11: error: stray '\221' in program
mathfunc.h:11: error: stray '\8' in program
mathfunc.h:11: error: stray '\221' in program
mathfunc.h:11: error: stray '\8' in program
mathfunc.h:11: error: stray '\221' in program
mathfunc.h:11: error: stray '\5' in program

mathfunc.h:11: error: stray '\16' in program
mathfunc.h:11:58: warning: null character(s) ignored
mathfunc.h:11:60: warning: null character(s) ignored
mathfunc.h:11: error: stray '\222' in program
mathfunc.h:11: error: stray '\193' in program
mathfunc.h:11: error: stray '\221' in program
mathfunc.h:11: error: stray '\8' in program
mathfunc.h:11: error: stray '\221' in program
mathfunc.h:11: error: stray '\8' in program

mathfunc.h:11: error: stray '\217' in program
mathfunc.h:11: error: expected declaration before '}' token
make.exe: *** [testinclude.o] Error 1

Execution terminated


Whats wrong with this??? If I put all the functions in main.cpp it works fine...

Share this post


Link to post
Share on other sites
mathfunc.h has non-valid characters in it (i.e. byte-values that don't match up with ASCII characters interpretable by the compiler).

Hold down alt, then type the '\' numbers on the numpad, then let go of alt.
e.g.
144 = É
184 = ©
186 = ║
220 = ▄

Sounds like that file has become corrupted.

Share this post


Link to post
Share on other sites
No, I wrote the whole thing from scratch. Im making myself a custom library for my game full of math functions. However, I dont know if its a problem but I did accidentally hit Num Lock off at one point and turned it back on right away...

Share this post


Link to post
Share on other sites
What are you using to write your code? What are you using to compile your code?

Have you checked the extension on the file names to be sure they are exactly what you expect? (Are you aware that Windows can hide file extensions?) Have you checked that the file sizes are about what they ought to be? (For what you have posted, you should be seeing something like 1 or 2 kb, not 20 or 30.)

Share this post


Link to post
Share on other sites

This topic is 2663 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this