Howdy I am trying to create a series of buttons in a window. I am having problems initializing a set of char to use as names for the buttons. Every time I try to compile it produces this error.
error: invalid conversion from ‘char’ to ‘const char*’ [-fpermissive]
Any suggestions or better way to make these buttons.
The eventual main goal of this program is for a button when pressed to change places with the button labeled 0 in the program.
hello Michmech: the function Fl_Button 5th argument -> "label" should be const char*, simply a c-style string not a character.
1 2 3 4 5
Fl_Button::Fl_Button(int x, int y, int w, int h, constchar *label = 0)//it's declaration
//try this
Fl_Button* but = new Fl_Button( pointsx[i][j], pointsy[i][j], 40, 40, "my label" );