Public Group

# Stray '\' errors??

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

## 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_Hdouble isPof(double is, double of);double pofIS(double percent, double of);double round(double number, int precision);#endifdouble 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 programIn file included from testinclude.cpp:2:mathfunc.h:1:4: warning: null character(s) ignoredmathfunc.h:1: error: stray '\3' in programmathfunc.h:1:6: warning: null character(s) ignoredmathfunc.h:1: error: stray '\4' in programmathfunc.h:1:10: warning: null character(s) ignoredmathfunc.h:1: error: stray '\255' in programmathfunc.h:1: error: stray '\255' in programmathfunc.h:1:15: warning: null character(s) ignoredmathfunc.h:1: error: stray '\184' in programmathfunc.h:1:18: warning: null character(s) ignoredmathfunc.h:1:26: warning: null character(s) ignoredmathfunc.h:1: error: stray '@' in programmathfunc.h:1: error: stray '\128' in programmathfunc.h:1:62: warning: null character(s) ignoredmathfunc.h:1: error: stray '\14' in programmathfunc.h:1: error: stray '\31' in programmathfunc.h:1: error: stray '\186' in programmathfunc.h:1: error: stray '\14' in programmathfunc.h:1:69: warning: null character(s) ignoredmathfunc.h:1: error: stray '\180' in programmathfunc.h:1: error: stray '\205' in programmathfunc.h:1: error: expected constructor, destructor, or type conversion before '!' tokenmathfunc.h:1: error: expected ,' or ;' before '!' tokenmathfunc.h:1: error: stray '\184' in programmathfunc.h:1: error: stray '\1' in programmathfunc.h:1: error: stray '\205' in programmathfunc.h:3:2: warning: null character(s) ignoredmathfunc.h:3:11: warning: null character(s) ignoredmathfunc.h:3: error: stray '\1' in programmathfunc.h:3: error: stray '\5' in programmathfunc.h:3:16: warning: null character(s) ignoredmathfunc.h:3:21: warning: null character(s) ignoredmathfunc.h:3: error: stray '\18' in programmathfunc.h:3: error: stray '\4' in programmathfunc.h:3:24: warning: null character(s) ignoredmathfunc.h:3: error: stray '\18' in programmathfunc.h:3: error: stray '\20' in programmathfunc.h:3:27: warning: null character(s) ignoredmathfunc.h:3: error: stray '\224' in programmathfunc.h:3:30: warning: null character(s) ignoredmathfunc.h:3: error: stray '\7' in programmathfunc.h:3: error: stray '\3' in programmathfunc.h:3: error: stray '\1' in programmathfunc.h:3: error: stray '\2' in programmathfunc.h:3:37: warning: null character(s) ignoredmathfunc.h:3: error: stray '\220' in programmathfunc.h:3: error: stray '\3' in programmathfunc.h:3:40: warning: null character(s) ignoredmathfunc.h:3: error: stray '\14' in programmathfunc.h:3: error: stray '\4' in programmathfunc.h:3:44: warning: null character(s) ignoredmathfunc.h:3:47: warning: null character(s) ignoredmathfunc.h:3: error: stray '\18' in programmathfunc.h:3:51: warning: null character(s) ignoredmathfunc.h:3: error: stray '\16' in programmathfunc.h:3:55: warning: null character(s) ignoredmathfunc.h:3: error: stray '\240' in programmathfunc.h:3: error: stray '\3' in programmathfunc.h:3:60: warning: null character(s) ignoredmathfunc.h:3:64: warning: null character(s) ignoredmathfunc.h:3: error: stray '@' in programmathfunc.h:3: error: stray '\16' in programmathfunc.h:3:67: warning: null character(s) ignoredmathfunc.h:3: error: stray '\2' in programmathfunc.h:3:71: warning: null character(s) ignoredmathfunc.h:3: error: stray '\4' in programmathfunc.h:3:74: warning: null character(s) ignoredmathfunc.h:3: error: stray '\1' in programmathfunc.h:3:78: warning: null character(s) ignoredmathfunc.h:3: error: stray '\4' in programmathfunc.h:3:82: warning: null character(s) ignoredmathfunc.h:3: error: stray '\144' in programmathfunc.h:3: error: stray '\4' in programmathfunc.h:3:92: warning: null character(s) ignoredmathfunc.h:3: error: stray '\4' in programmathfunc.h:3:95: warning: null character(s) ignoredmathfunc.h:3: error: stray '\195' in programmathfunc.h:3: error: stray '\7' in programmathfunc.h:3:100: warning: null character(s) ignoredmathfunc.h:3: error: stray '\3' in programmathfunc.h:3:102: warning: null character(s) ignoredmathfunc.h:3: error: stray '\16' in programmathfunc.h:3:111: warning: null character(s) ignoredmathfunc.h:3: error: stray '\16' in programmathfunc.h:3:116: warning: null character(s) ignoredmathfunc.h:3: error: stray '\16' in programmathfunc.h:3:119: warning: null character(s) ignoredmathfunc.h:3: error: stray '\16' in programmathfunc.h:3:126: warning: null character(s) ignoredmathfunc.h:3: error: stray '\128' in programmathfunc.h:3: error: stray '\4' in programmathfunc.h:3:140: warning: null character(s) ignoredmathfunc.h:3: error: stray '\156' in programmathfunc.h:3: error: stray '\7' in programmathfunc.h:3:143: warning: null character(s) ignoredmathfunc.h:3:262: warning: null character(s) ignoredmathfunc.h:3: error: stray '\192' in programmathfunc.h:3: error: stray '\218' in programmathfunc.h:3: error: stray '\3' in programmathfunc.h:3:268: warning: null character(s) ignoredmathfunc.h:3: error: stray '\16' in programmathfunc.h:3:271: warning: null character(s) ignoredmathfunc.h:3: error: stray '\220' in programmathfunc.h:3: error: stray '\3' in programmathfunc.h:3:276: warning: null character(s) ignoredmathfunc.h:3: error: stray '\4' in programmathfunc.h:3:279: warning: null character(s) ignoredmathfunc.h:3: error: stray '' in programmathfunc.h:3:294: warning: null character(s) ignoredmathfunc.h:3: error: stray '' in programmathfunc.h:3:302: warning: null character(s) ignoredmathfunc.h:3: error: stray '\144' in programmathfunc.h:3: error: stray '\1' in programmathfunc.h:3:307: warning: null character(s) ignoredmathfunc.h:3: error: stray '\240' in programmathfunc.h:3: error: stray '\3' in programmathfunc.h:3:312: warning: null character(s) ignoredmathfunc.h:3: error: stray '\2' in programmathfunc.h:3:315: warning: null character(s) ignoredmathfunc.h:3: error: stray '\224' in programmathfunc.h:3: error: stray '\3' in programmathfunc.h:3:320: warning: null character(s) ignoredmathfunc.h:3:334: warning: null character(s) ignoredmathfunc.h:3: error: stray '@' in programmathfunc.h:3: error: stray '\192' in programmathfunc.h:3:343: warning: null character(s) ignoredmathfunc.h:3:347: warning: null character(s) ignoredmathfunc.h:3: error: stray '\4' in programmathfunc.h:3:352: warning: null character(s) ignoredmathfunc.h:3:355: warning: null character(s) ignoredmathfunc.h:3: error: stray '\226' in programmathfunc.h:3: error: stray '\3' in programmathfunc.h:3:360: warning: null character(s) ignoredmathfunc.h:3:374: warning: null character(s) ignoredmathfunc.h:3: error: stray '@' in programmathfunc.h:3: error: stray '@' in programmathfunc.h:3:381: warning: null character(s) ignoredmathfunc.h:3: error: stray '\224' in programmathfunc.h:3:387: warning: null character(s) ignoredmathfunc.h:3: error: stray '\4' in programmathfunc.h:3:392: warning: null character(s) ignoredmathfunc.h:3: error: stray '\128' in programmathfunc.h:3:414: warning: null character(s) ignoredmathfunc.h:3: error: stray '\192' in programmathfunc.h:3:423: warning: null character(s) ignoredmathfunc.h:3: error: stray '\156' in programmathfunc.h:3: error: stray '\7' in programmathfunc.h:3:427: warning: null character(s) ignoredmathfunc.h:3: error: stray '\128' in programmathfunc.h:3: error: stray '\4' in programmathfunc.h:3:432: warning: null character(s) ignoredmathfunc.h:3: error: stray '\8' in programmathfunc.h:3:435: warning: null character(s) ignoredmathfunc.h:4: error: stray '\4' in programmathfunc.h:4:2: warning: null character(s) ignoredmathfunc.h:4:16: warning: null character(s) ignoredmathfunc.h:4: error: stray '@' in programmathfunc.h:4: error: stray '\192' in programmathfunc.h:4:19: warning: null character(s) ignoredmathfunc.h:4: error: stray '\137' in programmathfunc.h:4: error: stray '\229' in programmathfunc.h:4: error: stray '\131' in programmathfunc.h:4: error: stray '\236' in programmathfunc.h:4: error: stray '\24' in programmathfunc.h:4: error: stray '\137' in programmathfunc.h:4: error: stray '\248' in programmathfunc.h:4: error: stray '\139' in programmathfunc.h:4: error: stray '\8' in programmathfunc.h:4: error: stray '\219' in programmathfunc.h:4: error: stray '\137' in programmathfunc.h:4: error: stray '\252' in programmathfunc.h:4: error: stray '\139' in programmathfunc.h:4: error: stray '\2' in programmathfunc.h:4: error: stray '\246' in programmathfunc.h:4: error: stray '\139' in programmathfunc.h:4:489: warning: null character(s) ignoredmathfunc.h:4: error: stray '\145' in programmathfunc.h:4:492: warning: null character(s) ignoredmathfunc.h:4: error: stray '\192' in programmathfunc.h:4: error: stray '\141' in programmathfunc.h:4:499: warning: null character(s) ignoredmathfunc.h:4: error: stray '\192' in programmathfunc.h:4: error: stray '\190' in programmathfunc.h:4: error: stray '\1' in programmathfunc.h:4:506: warning: null character(s) ignoredmathfunc.h:4: error: stray '\199' in programmathfunc.h:4: error: stray '\4' in programmathfunc.h:4: error: stray '\8' in programmathfunc.h:4:513: warning: null character(s) ignoredmathfunc.h:4: error: stray '\192' in programmathfunc.h:4: error: stray '\137' in programmathfunc.h:4: error: stray '\4' in programmathfunc.h:4: error: stray '\232' in programmathfunc.h:4: error: stray '\247' in programmathfunc.h:4:525: warning: null character(s) ignoredmathfunc.h:4: error: stray '\131' in programmathfunc.h:4: error: stray '\248' in programmathfunc.h:4: error: stray '\1' in programmathfunc.h:4: error: stray '\133' in programmathfunc.h:4: error: stray '\192' in programmathfunc.h:4: error: stray '\199' in programmathfunc.h:4: error: stray '\4' in programmathfunc.h:4: error: stray '\8' in programmathfunc.h:4:540: warning: null character(s) ignoredmathfunc.h:4: error: stray '\255' in programmathfunc.h:4: error: stray '\208' in programmathfunc.h:4: error: stray '\187' in programmathfunc.h:4: error: stray '\255' in programmathfunc.h:4: error: stray '\255' in programmathfunc.h:4: error: stray '\255' in programmathfunc.h:4: error: stray '\255' in programmathfunc.h:4: error: stray '\137' in programmathfunc.h:4: error: stray '\216' in programmathfunc.h:4: error: stray '\139' in programmathfunc.h:4: error: stray '\252' in programmathfunc.h:4: error: stray '\139' in programmathfunc.h:4: error: stray '\248' in programmathfunc.h:4: error: stray '\137' in programmathfunc.h:4: error: stray '\236' in programmathfunc.h:4: error: stray '\194' in programmathfunc.h:4: error: stray '\4' in programmathfunc.h:4:563: warning: null character(s) ignoredmathfunc.h:4: error: stray '\147' in programmathfunc.h:4:566: warning: null character(s) ignoredmathfunc.h:4: error: stray '\192' in programmathfunc.h:4: error: stray '\189' in programmathfunc.h:4: error: stray '\148' in programmathfunc.h:4:573: warning: null character(s) ignoredmathfunc.h:4: error: stray '\192' in programmathfunc.h:4: error: stray '\187' in programmathfunc.h:4: error: stray '\137' in programmathfunc.h:4: error: stray '\216' in programmathfunc.h:4: error: stray '\139' in programmathfunc.h:4: error: stray '\252' in programmathfunc.h:4: error: stray '\139' in programmathfunc.h:4: error: stray '\248' in programmathfunc.h:4: error: stray '\137' in programmathfunc.h:4: error: stray '\236' in programmathfunc.h:4: error: stray '\194' in programmathfunc.h:4: error: stray '\4' in programmathfunc.h:4:591: warning: null character(s) ignoredmathfunc.h:4: error: stray '\141' in programmathfunc.h:4:594: warning: null character(s) ignoredmathfunc.h:4: error: stray '\5' in programmathfunc.h:4:597: warning: null character(s) ignoredmathfunc.h:4: error: stray '\192' in programmathfunc.h:4: error: stray '\232' in programmathfunc.h:4: error: stray '\199' in programmathfunc.h:4: error: stray '\4' in programmathfunc.h:4:605: warning: null character(s) ignoredmathfunc.h:4: error: stray '\246' in programmathfunc.h:4: error: stray '\137' in programmathfunc.h:4: error: stray '\4' in programmathfunc.h:4: error: stray '\232' in programmathfunc.h:4: error: stray '\247' in programmathfunc.h:4: error: stray '\246' in programmathfunc.h:4:618: warning: null character(s) ignoredmathfunc.h:4: error: stray '\131' in programmathfunc.h:4: error: stray '\248' in programmathfunc.h:4: error: stray '\1' in programmathfunc.h:4: error: stray '\133' in programmathfunc.h:4: error: stray '\192' in programmathfunc.h:4: error: stray '\205' in programmathfunc.h:4: error: stray '\199' in programmathfunc.h:4: error: stray '\4' in programmathfunc.h:4:632: warning: null character(s) ignoredmathfunc.h:4: error: stray '\255' in programmathfunc.h:4: error: stray '\208' in programmathfunc.h:4: error: stray '\235' in programmathfunc.h:4: error: stray '\161' in programmathfunc.h:4: error: stray '\199' in programmathfunc.h:4: error: stray '\4' in programmathfunc.h:4: error: stray '\8' in programmathfunc.h:4:644: warning: null character(s) ignoredmathfunc.h:4: error: stray '\187' in programmathfunc.h:4: error: stray '\1' in programmathfunc.h:4:649: warning: null character(s) ignoredmathfunc.h:4: error: stray '\137' in programmathfunc.h:4: error: stray '\' in programmathfunc.h:4: error: stray '\4' in programmathfunc.h:4: error: stray '\232' in programmathfunc.h:4: error: stray '\206' in programmathfunc.h:4: error: stray '\246' in programmathfunc.h:4:659: warning: null character(s) ignoredmathfunc.h:4: error: stray '\133' in programmathfunc.h:4: error: stray '\246' in programmathfunc.h:4: error: stray '\136' in programmathfunc.h:4: error: stray '\232' in programmathfunc.h:4: error: stray '\165' in programmathfunc.h:4: error: stray '\188' in programmathfunc.h:4:668: warning: null character(s) ignoredmathfunc.h:4: error: stray '\187' in programmathfunc.h:4: error: stray '\255' in programmathfunc.h:4: error: stray '\255' in programmathfunc.h:4: error: stray '\255' in programmathfunc.h:4: error: stray '\255' in programmathfunc.h:4: error: stray '\235' in programmathfunc.h:4: error: stray '\129' in programmathfunc.h:4: error: stray '\199' in programmathfunc.h:4: error: stray '\4' in programmathfunc.h:4:680: warning: null character(s) ignoredmathfunc.h:4: error: stray '\185' in programmathfunc.h:4: error: stray '\1' in programmathfunc.h:4:686: warning: null character(s) ignoredmathfunc.h:4: error: stray '\187' in programmathfunc.h:4: error: stray '\255' in programmathfunc.h:4: error: stray '\255' in programmathfunc.h:4: error: stray '\255' in programmathfunc.h:4: error: stray '\255' in programmathfunc.h:4: error: stray '\137' in programmathfunc.h:4: error: stray '\4' in programmathfunc.h:4: error: stray '\232' in programmathfunc.h:4: error: stray '\164' in programmathfunc.h:4: error: stray '\246' in programmathfunc.h:4:701: warning: null character(s) ignoredmathfunc.h:4: error: stray '\233' in programmathfunc.h:4: error: stray '\255' in programmathfunc.h:4: error: stray '\255' in programmathfunc.h:4: error: stray '\255' in programmathfunc.h:4: error: stray '\235' in programmathfunc.h:5: error: stray '\144' in programmathfunc.h:5: error: stray '\144' in programmathfunc.h:5: error: stray '\144' in programmathfunc.h:5: error: stray '\144' in programmathfunc.h:5: error: stray '\144' in programmathfunc.h:5: error: stray '\144' in programmathfunc.h:5: error: stray '\144' in programmathfunc.h:5: error: stray '\144' in programmathfunc.h:5: error: stray '\144' in programmathfunc.h:5: error: stray '\144' in programmathfunc.h:5: error: stray '\144' in programmathfunc.h:5: error: stray '\144' in programmathfunc.h:5: error: stray '\144' in programmathfunc.h:5: error: stray '\137' in programmathfunc.h:5: error: stray '\229' in programmathfunc.h:5: error: stray '\131' in programmathfunc.h:5: error: stray '\236' in programmathfunc.h:5: error: stray '\141' in programmathfunc.h:5: error: stray '\248' in programmathfunc.h:5: error: stray '\199' in programmathfunc.h:5: error: stray '\4' in programmathfunc.h:5:27: warning: null character(s) ignoredmathfunc.h:5: error: stray '\16' in programmathfunc.h:5:30: warning: null character(s) ignoredmathfunc.h:5: error: stray '@' in programmathfunc.h:5: error: stray '\232' in programmathfunc.h:5: error: stray '\250' in programmathfunc.h:5: error: stray '\248' in programmathfunc.h:5:34: warning: null character(s) ignoredmathfunc.h:5: error: stray '\131' in programmathfunc.h:5: error: stray '\236' in programmathfunc.h:5: error: stray '\4' in programmathfunc.h:5: error: stray '\232' in programmathfunc.h:5: error: stray '\188' in programmathfunc.h:5:42: warning: null character(s) ignoredmathfunc.h:5: error: stray '\199' in programmathfunc.h:5: error: stray '\248' in programmathfunc.h:5:47: warning: null character(s) ignoredmathfunc.h:5: error: stray '\184' in programmathfunc.h:5:52: warning: null character(s) ignoredmathfunc.h:5:53: invalid suffix "D" on integer constantmathfunc.h:5:55: warning: null character(s) ignoredmathfunc.h:5: error: stray '\141' in programmathfunc.h:5: error: stray '\244' in programmathfunc.h:5: error: stray '\137' in programmathfunc.h:5: error: stray '\' in programmathfunc.h:5: error: stray '\16' in programmathfunc.h:5: error: stray '\139' in programmathfunc.h:6: error: stray '\176' in programmathfunc.h:6: error: stray '\240' in programmathfunc.h:6:4: warning: null character(s) ignoredmathfunc.h:6: error: stray '\137' in programmathfunc.h:6: error: stray '\4' in programmathfunc.h:6: error: stray '\137' in programmathfunc.h:6: error: stray '\8' in programmathfunc.h:6: error: stray '\137' in programmathfunc.h:6: error: stray '\199' in programmathfunc.h:6: error: stray '\4' in programmathfunc.h:6: error: stray '\4' in programmathfunc.h:6:21: invalid suffix "D" on integer constantmathfunc.h:6:23: warning: null character(s) ignoredmathfunc.h:6: error: stray '\232' in programmathfunc.h:6: error: stray '\246' in programmathfunc.h:6:27: warning: null character(s) ignoredmathfunc.h:6: error: stray '\161' in programmathfunc.h:6:33: warning: null character(s) ignoredmathfunc.h:6: error: stray '\133' in programmathfunc.h:6: error: stray '\192' in programmathfunc.h:6: error: stray '\163' in programmathfunc.h:6: error: stray '\192' in programmathfunc.h:6: error: stray '\240' in programmathfunc.h:6:42: warning: null character(s) ignoredmathfunc.h:6: error: stray '\139' in programmathfunc.h:6: error: stray '\21' in programmathfunc.h:6: error: stray '\20' in programmathfunc.h:6: error: stray '\130' in programmathfunc.h:6:48: warning: null character(s) ignoredmathfunc.h:6: error: stray '\133' in programmathfunc.h:6: error: stray '\210' in programmathfunc.h:6: error: stray '\15' in programmathfunc.h:6: error: stray '\133' in programmathfunc.h:6: error: stray '\139' in programmathfunc.h:6:54: warning: null character(s) ignoredmathfunc.h:6: error: stray '\131' in programmathfunc.h:6: error: stray '\250' in programmathfunc.h:6: error: stray '\224' in programmathfunc.h:6: error: stray '\161' in programmathfunc.h:6:66: warning: null character(s) ignoredmathfunc.h:6: error: stray '\137' in programmathfunc.h:6: error: stray '\4' in programmathfunc.h:6: error: stray '\139' in programmathfunc.h:6: error: stray '\29' in programmathfunc.h:6: error: stray '\20' in programmathfunc.h:6: error: stray '\130' in programmathfunc.h:6:76: warning: null character(s) ignoredmathfunc.h:6: error: stray '\139' in programmathfunc.h:6: error: stray '\137' in programmathfunc.h:6: error: stray '\232' in programmathfunc.h:6: error: stray '\246' in programmathfunc.h:6:86: warning: null character(s) ignoredmathfunc.h:6: error: stray '\139' in programmathfunc.h:6: error: stray '\21' in programmathfunc.h:6: error: stray '\20' in programmathfunc.h:6: error: stray '\130' in programmathfunc.h:6:93: warning: null character(s) ignoredmathfunc.h:6: error: stray '\131' in programmathfunc.h:6: error: stray '\250' in programmathfunc.h:6: error: stray '\192' in programmathfunc.h:6: error: stray '\27' in programmathfunc.h:6: error: stray '\139' in programmathfunc.h:6: error: stray '\29' in programmathfunc.h:6:104: warning: null character(s) ignoredmathfunc.h:6: error: stray '\137' in programmathfunc.h:6: error: stray '\' in programmathfunc.h:6: error: stray '\4' in programmathfunc.h:6: error: stray '\139' in programmathfunc.h:7: error: stray '\20' in programmathfunc.h:7: error: stray '\130' in programmathfunc.h:7:4: warning: null character(s) ignoredmathfunc.h:7: error: stray '\139' in programmathfunc.h:7: error: stray '\137' in programmathfunc.h:7: error: stray '\20' in programmathfunc.h:7: error: stray '\232' in programmathfunc.h:7:12: warning: null character(s) ignoredmathfunc.h:7: error: stray '\246' in programmathfunc.h:7:14: warning: null character(s) ignoredmathfunc.h:7: error: stray '\232' in programmathfunc.h:7: error: stray '\235' in programmathfunc.h:7: error: stray '\245' in programmathfunc.h:7:19: warning: null character(s) ignoredmathfunc.h:7: error: stray '\139' in programmathfunc.h:7: error: stray '\29' in programmathfunc.h:7: error: stray '\192' in programmathfunc.h:7: error: stray '\240' in programmathfunc.h:7:26: warning: null character(s) ignoredmathfunc.h:7: error: stray '\137' in programmathfunc.h:7: error: stray '\24' in programmathfunc.h:7: error: stray '\232' in programmathfunc.h:7: error: stray '\187' in programmathfunc.h:7:32: warning: null character(s) ignoredmathfunc.h:7: error: stray '\131' in programmathfunc.h:7: error: stray '\228' in programmathfunc.h:7: error: stray '\240' in programmathfunc.h:7: error: stray '\232' in programmathfunc.h:7: error: stray '\182' in programmathfunc.h:7: error: stray '\245' in programmathfunc.h:7:40: warning: null character(s) ignoredmathfunc.h:7: error: stray '\139' in programmathfunc.h:7: error: stray '\8' in programmathfunc.h:7: error: stray '\137' in programmathfunc.h:7: error: stray '\8' in programmathfunc.h:7: error: stray '\139' in programmathfunc.h:7: error: stray '\21' in programmathfunc.h:7:50: warning: null character(s) ignoredmathfunc.h:7:51: invalid suffix "D" on integer constantmathfunc.h:7:53: warning: null character(s) ignoredmathfunc.h:7: error: stray '\137' in programmathfunc.h:7: error: stray '\4' in programmathfunc.h:7: error: stray '\161' in programmathfunc.h:7: error: stray '\4' in programmathfunc.h:7:60: invalid suffix "D" on integer constantmathfunc.h:7:62: warning: null character(s) ignoredmathfunc.h:7: error: stray '\137' in programmathfunc.h:7: error: stray '\4' in programmathfunc.h:7: error: stray '\232' in programmathfunc.h:7: error: stray '\157' in programmathfunc.h:7: error: stray '\2' in programmathfunc.h:7:69: warning: null character(s) ignoredmathfunc.h:7: error: stray '\137' in programmathfunc.h:7: error: stray '\195' in programmathfunc.h:7: error: stray '\232' in programmathfunc.h:7: error: stray '\130' in programmathfunc.h:7: error: stray '\245' in programmathfunc.h:7:76: warning: null character(s) ignoredmathfunc.h:7: error: stray '\137' in programmathfunc.h:7: error: stray '\28' in programmathfunc.h:7: error: stray '\232' in programmathfunc.h:7: error: stray '\248' in programmathfunc.h:7:84: warning: null character(s) ignoredmathfunc.h:7: error: stray '\137' in programmathfunc.h:7: error: stray '\4' in programmathfunc.h:7: error: stray '\139' in programmathfunc.h:7: error: stray '\21' in programmathfunc.h:7: error: stray '\20' in programmathfunc.h:7: error: stray '\130' in programmathfunc.h:7:95: warning: null character(s) ignoredmathfunc.h:7: error: stray '\139' in programmathfunc.h:7: error: stray '\16' in programmathfunc.h:7: error: stray '\137' in programmathfunc.h:7: error: stray '\4' in programmathfunc.h:7: error: stray '\232' in programmathfunc.h:7: error: stray '\165' in programmathfunc.h:7: error: stray '\245' in programmathfunc.h:7:105: warning: null character(s) ignoredmathfunc.h:7: error: stray '\139' in programmathfunc.h:7: error: stray '\21' in programmathfunc.h:7: error: stray '\20' in programmathfunc.h:7: error: stray '\130' in programmathfunc.h:7:112: warning: null character(s) ignoredmathfunc.h:7: error: stray '\233' in programmathfunc.h:7: error: stray '\255' in programmathfunc.h:7: error: stray '\255' in programmathfunc.h:7: error: stray '\255' in programmathfunc.h:7: error: stray '\141' in programmathfunc.h:7:120: warning: null character(s) ignoredmathfunc.h:7: error: stray '\141' in programmathfunc.h:7: error: stray '\188' in programmathfunc.h:7:123: warning: null character(s) preserved in literalmathfunc.h:7: error: missing terminating ' charactermathfunc.h:8: error: stray '\130' in programmathfunc.h:8:4: warning: null character(s) ignoredmathfunc.h:8: error: stray '\137' in programmathfunc.h:8: error: stray '\229' in programmathfunc.h:8: error: stray '\255' in programmathfunc.h:8: error: stray '\225' in programmathfunc.h:8: error: stray '\141' in programmathfunc.h:8:13: warning: null character(s) ignoredmathfunc.h:8: error: stray '\139' in programmathfunc.h:9: error: stray '\130' in programmathfunc.h:9:4: warning: null character(s) ignoredmathfunc.h:9: error: stray '\137' in programmathfunc.h:9: error: stray '\229' in programmathfunc.h:9: error: stray '\255' in programmathfunc.h:9: error: stray '\225' in programmathfunc.h:9: error: stray '\144' in programmathfunc.h:9: error: stray '\144' in programmathfunc.h:9: error: stray '\144' in programmathfunc.h:9: error: stray '\144' in programmathfunc.h:9: error: stray '\137' in programmathfunc.h:9: error: stray '\229' in programmathfunc.h:9: error: stray '\233' in programmathfunc.h:9: error: stray '\23' in programmathfunc.h:9: error: stray '\189' in programmathfunc.h:9:21: warning: null character(s) ignoredmathfunc.h:9: error: stray '\144' in programmathfunc.h:9: error: stray '\144' in programmathfunc.h:9: error: stray '\144' in programmathfunc.h:9: error: stray '\144' in programmathfunc.h:9: error: stray '\144' in programmathfunc.h:9: error: stray '\144' in programmathfunc.h:9: error: stray '\144' in programmathfunc.h:9: error: stray '\137' in programmathfunc.h:9: error: stray '\229' in programmathfunc.h:9: error: stray '\131' in programmathfunc.h:9: error: stray '\236' in programmathfunc.h:9: error: stray '\139' in programmathfunc.h:9: error: stray '\16' in programmathfunc.h:9: error: stray '\137' in programmathfunc.h:9: error: stray '\4' in programmathfunc.h:9: error: stray '\232' in programmathfunc.h:9: error: stray '\191' in programmathfunc.h:10: error: stray '\1' in programmathfunc.h:10:2: warning: null character(s) ignoredmathfunc.h:10: error: stray '\137' in programmathfunc.h:10: error: stray '\252' in programmathfunc.h:10: error: stray '\139' in programmathfunc.h:10: error: stray '\137' in programmathfunc.h:10: error: stray '\244' in programmathfunc.h:10: error: stray '\141' in programmathfunc.h:10: error: stray '\244' in programmathfunc.h:10: error: stray '\137' in programmathfunc.h:10: error: stray '\4' in programmathfunc.h:10: error: stray '\141' in programmathfunc.h:10: error: stray '\252' in programmathfunc.h:10: error: stray '\137' in programmathfunc.h:10: error: stray '\4' in programmathfunc.h:10: error: stray '\232' in programmathfunc.h:10: error: stray '\146' in programmathfunc.h:10: error: stray '\156' in programmathfunc.h:10: error: stray '\3' in programmathfunc.h:10:31: warning: null character(s) ignoredmathfunc.h:10: error: stray '\139' in programmathfunc.h:10:33: warning: null character(s) ignoredmathfunc.h:10: error: stray '\137' in programmathfunc.h:10: error: stray '\248' in programmathfunc.h:10: error: stray '\139' in programmathfunc.h:10: error: stray '\252' in programmathfunc.h:10: error: stray '\137' in programmathfunc.h:10: error: stray '\240' in programmathfunc.h:10: error: stray '\198' in programmathfunc.h:10: error: stray '\239' in programmathfunc.h:10: error: stray '\1' in programmathfunc.h:10: error: stray '\199' in programmathfunc.h:10: error: stray '\232' in programmathfunc.h:10:50: warning: null character(s) ignoredmathfunc.h:10: error: stray '\139' in programmathfunc.h:10: error: stray '\232' in programmathfunc.h:10: error: stray '\248' in programmathfunc.h:10: error: stray '\128' in programmathfunc.h:10: error: stray '\239' in programmathfunc.h:10:65: warning: null character(s) ignoredmathfunc.h:10: error: stray '\139' in programmathfunc.h:10: error: stray '\240' in programmathfunc.h:10: error: stray '\137' in programmathfunc.h:10: error: stray '\4' in programmathfunc.h:10: error: stray '\139' in programmathfunc.h:10: error: stray '\16' in programmathfunc.h:10: error: stray '\137' in programmathfunc.h:10: error: stray '\4' in programmathfunc.h:10: error: stray '\232' in programmathfunc.h:10: error: stray '\156' in programmathfunc.h:10: error: stray '\19' in programmathfunc.h:10: error: stray '\1' in programmathfunc.h:10:85: warning: null character(s) ignoredmathfunc.h:10: error: stray '\137' in programmathfunc.h:10: error: stray '\193' in programmathfunc.h:10: error: stray '\139' in programmathfunc.h:10: error: stray '\8' in programmathfunc.h:10: error: stray '\139' in programmathfunc.h:10: error: stray '\232' in programmathfunc.h:10: error: stray '\1' in programmathfunc.h:10: error: stray '\194' in programmathfunc.h:10: error: stray '\15' in programmathfunc.h:10: error: stray '\182' in programmathfunc.h:10: error: stray '\1' in programmathfunc.h:10: error: stray '\2' in programmathfunc.h:10: error: stray '\15' in programmathfunc.h:10: error: stray '\148' in programmathfunc.h:10: error: stray '\192' in programmathfunc.h:10: error: stray '\136' in programmathfunc.h:10: error: stray '\239' in programmathfunc.h:10: error: stray '\141' in programmathfunc.h:10: error: stray '\240' in programmathfunc.h:10: error: stray '\255' in programmathfunc.h:10: error: stray '\8' in programmathfunc.h:10: error: stray '\141' in programmathfunc.h:10: error: stray '\232' in programmathfunc.h:10: error: stray '\255' in programmathfunc.h:10:116: warning: null character(s) ignoredmathfunc.h:10: error: stray '\235' in programmathfunc.h:10: error: stray '\191' in programmathfunc.h:10: error: stray '\131' in programmathfunc.h:10: error: stray '\240' in programmathfunc.h:10:122: warning: null character(s) ignoredmathfunc.h:10: error: stray '\128' in programmathfunc.h:10: error: stray '\239' in programmathfunc.h:10:128: warning: null character(s) ignoredmathfunc.h:10: error: stray '\139' in programmathfunc.h:10: error: stray '\240' in programmathfunc.h:10: error: stray '\137' in programmathfunc.h:10: error: stray '\4' in programmathfunc.h:10: error: stray '\139' in programmathfunc.h:10: error: stray '\16' in programmathfunc.h:10: error: stray '\137' in programmathfunc.h:10: error: stray '\4' in programmathfunc.h:10: error: stray '\232' in programmathfunc.h:10: error: stray '\19' in programmathfunc.h:10: error: stray '\1' in programmathfunc.h:10:148: warning: null character(s) ignoredmathfunc.h:10: error: stray '\137' in programmathfunc.h:10: error: stray '\193' in programmathfunc.h:10: error: stray '\139' in programmathfunc.h:10: error: stray '\8' in programmathfunc.h:10: error: stray '\139' in programmathfunc.h:10: error: stray '\248' in programmathfunc.h:10: error: stray '\1' in programmathfunc.h:10: error: stray '\194' in programmathfunc.h:10: error: stray '\15' in programmathfunc.h:10: error: stray '\182' in programmathfunc.h:10: error: stray '\1' in programmathfunc.h:10: error: stray '\2' in programmathfunc.h:10: error: stray '\15' in programmathfunc.h:10: error: stray '\148' in programmathfunc.h:10: error: stray '\192' in programmathfunc.h:10: error: stray '\136' in programmathfunc.h:10: error: stray '\239' in programmathfunc.h:10: error: stray '\141' in programmathfunc.h:10: error: stray '\240' in programmathfunc.h:10: error: stray '\255' in programmathfunc.h:10: error: stray '\8' in programmathfunc.h:10: error: stray '\235' in programmathfunc.h:10: error: stray '\198' in programmathfunc.h:10: error: stray '\199' in programmathfunc.h:10: error: stray '\4' in programmathfunc.h:10:181: warning: null character(s) ignoredmathfunc.h:10: error: stray '\139' in programmathfunc.h:10: error: stray '\16' in programmathfunc.h:10: error: stray '\137' in programmathfunc.h:10: error: stray '\4' in programmathfunc.h:10: error: stray '\232' in programmathfunc.h:10: error: stray '\19' in programmathfunc.h:10: error: stray '\1' in programmathfunc.h:10:195: warning: null character(s) ignoredmathfunc.h:10: error: stray '\137' in programmathfunc.h:10: error: stray '\193' in programmathfunc.h:10: error: stray '\139' in programmathfunc.h:10: error: stray '\8' in programmathfunc.h:10: error: stray '\139' in programmathfunc.h:10: error: stray '\248' in programmathfunc.h:10: error: stray '\1' in programmathfunc.h:10: error: stray '\194' in programmathfunc.h:10: error: stray '\15' in programmathfunc.h:10: error: stray '\182' in programmathfunc.h:10: error: stray '\1' in programmathfunc.h:10: error: stray '\2' in programmathfunc.h:10: error: stray '\127' in programmathfunc.h:10: error: stray '\15' in programmathfunc.h:10: error: stray '\182' in programmathfunc.h:10: error: stray '\239' in programmathfunc.h:10: error: stray '\131' in programmathfunc.h:10: error: stray '\224' in programmathfunc.h:10: error: stray '\1' in programmathfunc.h:10: error: stray '\136' in programmathfunc.h:10: error: stray '\231' in programmathfunc.h:10: error: stray '\235' in programmathfunc.h:10: error: stray '\4' in programmathfunc.h:10: error: stray '\198' in programmathfunc.h:10: error: stray '\231' in programmathfunc.h:10:228: warning: null character(s) ignoredmathfunc.h:10: error: stray '\15' in programmathfunc.h:10: error: stray '\182' in programmathfunc.h:10: error: stray '\231' in programmathfunc.h:10: error: stray '\136' in programmathfunc.h:10: error: stray '\239' in programmathfunc.h:10: error: stray '\15' in programmathfunc.h:10: error: stray '\182' in programmathfunc.h:10: error: stray '\239' in programmathfunc.h:10: error: stray '\201' in programmathfunc.h:10: error: stray '\195' in programmathfunc.h:10: error: stray '\137' in programmathfunc.h:10: error: stray '\229' in programmathfunc.h:10: error: stray '\131' in programmathfunc.h:10: error: stray '\236' in programmathfunc.h:10: error: stray '\221' in programmathfunc.h:10: error: stray '\5' in programmathfunc.h:10:250: warning: null character(s) ignoredmathfunc.h:10:253: warning: null character(s) ignoredmathfunc.h:10: error: stray '\221' in programmathfunc.h:10: error: stray '\248' in programmathfunc.h:10: error: stray '\221' in programmathfunc.h:10: error: stray '\8' in programmathfunc.h:10: error: stray '\220' in programmathfunc.h:10: error: stray '\248' in programmathfunc.h:10: error: stray '\221' in programmathfunc.h:10: error: stray '\240' in programmathfunc.h:10: error: stray '\221' in programmathfunc.h:10: error: stray '\240' in programmathfunc.h:10: error: stray '\220' in programmathfunc.h:10: error: stray '\16' in programmathfunc.h:10: error: stray '\221' in programmathfunc.h:10: error: stray '\232' in programmathfunc.h:10: error: stray '\199' in programmathfunc.h:10: error: stray '\8' in programmathfunc.h:10: error: stray '\1' in programmathfunc.h:10:280: warning: null character(s) ignoredmathfunc.h:10: error: stray '\221' in programmathfunc.h:10: error: stray '\232' in programmathfunc.h:10: error: stray '\221' in programmathfunc.h:10: error: stray '\28' in programmathfunc.h:10: error: stray '\232' in programmathfunc.h:10:291: warning: null character(s) ignoredmathfunc.h:10: error: stray '\221' in programmathfunc.h:10: error: stray '\232' in programmathfunc.h:10: error: stray '\221' in programmathfunc.h:10: error: stray '\232' in programmathfunc.h:10: error: stray '\201' in programmathfunc.h:10: error: stray '\195' in programmathfunc.h:10: error: stray '\137' in programmathfunc.h:10: error: stray '\229' in programmathfunc.h:10: error: stray '\131' in programmathfunc.h:10: error: stray '\236' in programmathfunc.h:10: error: stray '\221' in programmathfunc.h:10: error: stray '\5' in programmathfunc.h:10: error: stray '\8' in programmathfunc.h:10:311: warning: null character(s) ignoredmathfunc.h:10:313: warning: null character(s) ignoredmathfunc.h:10: error: stray '\221' in programmathfunc.h:10: error: stray '\248' in programmathfunc.h:10: error: stray '\221' in programmathfunc.h:10: error: stray '\16' in programmathfunc.h:10: error: stray '\220' in programmathfunc.h:10: error: stray '\8' in programmathfunc.h:10: error: stray '\221' in programmathfunc.h:10: error: stray '\240' in programmathfunc.h:10: error: stray '\221' in programmathfunc.h:10: error: stray '\240' in programmathfunc.h:10: error: stray '\221' in programmathfunc.h:10: error: stray '\5' in programmathfunc.h:10: error: stray '\8' in programmathfunc.h:10:332: warning: null character(s) ignoredmathfunc.h:10:334: warning: null character(s) ignoredmathfunc.h:10: error: stray '\222' in programmathfunc.h:10: error: stray '\249' in programmathfunc.h:10: error: stray '\221' in programmathfunc.h:10: error: stray '\232' in programmathfunc.h:10: error: stray '\199' in programmathfunc.h:10: error: stray '\8' in programmathfunc.h:10: error: stray '\1' in programmathfunc.h:10:345: warning: null character(s) ignoredmathfunc.h:10: error: stray '\221' in programmathfunc.h:10: error: stray '\232' in programmathfunc.h:10: error: stray '\221' in programmathfunc.h:10: error: stray '\28' in programmathfunc.h:10: error: stray '\232' in programmathfunc.h:10:355: warning: null character(s) ignoredmathfunc.h:10: error: stray '\221' in programmathfunc.h:10: error: stray '\232' in programmathfunc.h:10: error: stray '\221' in programmathfunc.h:10: error: stray '\232' in programmathfunc.h:10: error: stray '\201' in programmathfunc.h:10: error: stray '\195' in programmathfunc.h:10: error: stray '\144' in programmathfunc.h:10: error: stray '\137' in programmathfunc.h:10: error: stray '\229' in programmathfunc.h:10: error: stray '\131' in programmathfunc.h:10: error: stray '\236' in programmathfunc.h:10: error: stray '\24' in programmathfunc.h:10: error: stray '\199' in programmathfunc.h:10: error: stray '\252' in programmathfunc.h:11:1: warning: null character(s) ignoredmathfunc.h:11: error: stray '\199' in programmathfunc.h:11: error: stray '\248' in programmathfunc.h:11: error: stray '\1' in programmathfunc.h:11:8: warning: null character(s) ignoredmathfunc.h:11: error: stray '\139' in programmathfunc.h:11: error: stray '\248' in programmathfunc.h:11: error: stray '\16' in programmathfunc.h:11: error: stray '\22' in programmathfunc.h:11: error: stray '\139' in programmathfunc.h:11: error: stray '\252' in programmathfunc.h:11: error: stray '\137' in programmathfunc.h:11: error: stray '\208' in programmathfunc.h:11: error: stray '\193' in programmathfunc.h:11: error: stray '\224' in programmathfunc.h:11: error: stray '\2' in programmathfunc.h:11: error: stray '\1' in programmathfunc.h:11: error: stray '\208' in programmathfunc.h:11: error: stray '\1' in programmathfunc.h:11: error: stray '\192' in programmathfunc.h:11: error: stray '\137' in programmathfunc.h:11: error: U' does not name a typemathfunc.h:11: error: stray '\252' in programmathfunc.h:11: error: stray '\141' in programmathfunc.h:11: error: stray '\248' in programmathfunc.h:11: error: stray '\255' in programmathfunc.h:11:38: warning: null character(s) ignoredmathfunc.h:11: error: stray '\235' in programmathfunc.h:11: error: stray '\226' in programmathfunc.h:11: error: stray '\219' in programmathfunc.h:11: error: stray '\252' in programmathfunc.h:11: error: stray '\221' in programmathfunc.h:11: error: stray '\8' in programmathfunc.h:11: error: stray '\222' in programmathfunc.h:11: error: stray '\201' in programmathfunc.h:11: error: stray '\221' in programmathfunc.h:11: error: stray '\8' in programmathfunc.h:11: error: stray '\221' in programmathfunc.h:11: error: stray '\8' in programmathfunc.h:11: error: stray '\221' in programmathfunc.h:11: error: stray '\5' in programmathfunc.h:11: error: stray '\16' in programmathfunc.h:11:58: warning: null character(s) ignoredmathfunc.h:11:60: warning: null character(s) ignoredmathfunc.h:11: error: stray '\222' in programmathfunc.h:11: error: stray '\193' in programmathfunc.h:11: error: stray '\221' in programmathfunc.h:11: error: stray '\8' in programmathfunc.h:11: error: stray '\221' in programmathfunc.h:11: error: stray '\8' in programmathfunc.h:11: error: stray '\217' in programmathfunc.h:11: error: expected declaration before '}' tokenmake.exe: *** [testinclude.o] Error 1Execution terminated`

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

##### Share on other sites
well i just somehow oddly fixed the error... I just made a new C++ project and pasted the same exact code in, and it worked. It must have glitched or something when making the program...

##### 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 = É
186 = ║
220 = ▄

Sounds like that file has become corrupted.

##### Share on other sites
I heard somewhere I could use a HexEditor, but it had over 300 some errors, all of the stray \ type...

##### Share on other sites
any chance you copy/pasted some code from a web page and/or saved your code in a different encoding?

##### 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 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 on other sites
sounds like your editor saved in UTF-8 with BOM or something similar. Copy pasting into a new editor window may have fixed this, as others have asked - what do you use to edit?

1. 1
Rutin
28
2. 2
3. 3
4. 4
5. 5

• 13
• 11
• 10
• 13
• 20
• ### Forum Statistics

• Total Topics
632952
• Total Posts
3009433
• ### Who's Online (See full list)

There are no registered users currently online

×