hi just a quick question, I'm kinda new at this so bare with me:
i built a library and the one of the parameter's is a String. However the compiler treats it like a char, even saying char in the error code. Although its defined as a String, and the rest of the code dealing with the parameter 'name' says String.
These are the errors:
checkname_on_lcd:9: error: invalid conversion from 'const char*' to 'char'
checkname_on_lcd:9: error: initializing argument 1 of 'Alarm::Alarm(char, char, char, int, int, int, int, int, int, int)'
Is it possible to use strings in a class? i know you can in the program itself as it works. I tried that before building the class. Please and thanks for your time and advice. Also if you treat the name string parameter like a char, the program works, as it obvs thinks it is a char. I have uploaded the earliest code revision i have where i noticed the error.
Srry my serial monitor doesnt work so i included the code for my lcd display.
computer specs
windows 7 64 bit updated
using arduino version 1.01
checkname_on_lcd.ino (598 Bytes)
Alarm.cpp (765 Bytes)
Alarm.h (1.41 KB)