Monday, 15 June 2015

c++ - expected ',' or '...' before numeric constant -


I neither lose nor answer me or document. Is it wrong here?

"The file contains from x.cpp: 7: /Users/user/Dropbox/Projects/Arduino/libraries/Range/Range.h27: Error: Before the numeric constant Expected Identifier / User / User / Dropbox / Projects / Arduino / Libraries / Range / Range.h: 27: Error: Expected ',' or '...' numeric constant before "

 Created by x on land and height // // 2013-03-27 based on the  // // Range.h // series. // // #ifndef RANGE_H_ #define RANGE_H_ #include "NewPing.h" #define BOTTOM_RF_PIN 5 #define BOTTOM_RF_ECHO_PIN 10 #define BOTTOM_RF_MAX 200 class range {public: range (); Zero init (); Float togound (); To float (); Float height (); Private: NewPing bottomRF (BOTTOM_RF_PIN, BOTTOM_RF_ECHO_PIN, BOTTOM_RF_MAX); }; #endif / * RANGE_H_ * /    

instead

< Code> NewPing bottomRF (BOTTOM_RF_PIN, BOTTOM_RF_ECHO_PIN, BOTTOM_RF_MAX);

Try

NewPing bottomRF (int, int, int);

Reason: You can not declare the function to take the sentences. The only type is the type int , 5 10 and 200 are literal.

No comments:

Post a Comment