Help with thread lib working with header files
i have a header file that i made a class in, so i defined the class and such but when i try to use thread to access a function in the class
error C3867: 'TTT::music': function call missing argument list; use '&TTT::music' to create a pointer to member f:\c\tttclass\tttclass\main.cpp 33
not understanding that error as i have the function called music that does not take an argument
1 2 3 4 5 6 7 8 9 10 11 12 13
|
//in header file
class TTT{
public:
void display(char position[row][column]);
void music();
};
//in main.cpp
thread t1(play.music);
t1.join;
|
thank you for your time
Topic archived. No new replies allowed.