Help! how would i be able to implement a class constructor responsible for performing any initialization needed by the curses library using that CScreen(const char fame[]); It is from a .h file for a program to generate a certain character throughout the screen randomly filling it and changes foreground/background color on loop until ctrl+C is used to break.
1 2 3 4 5 6 7 8 9 10 11 12 13 14
class CScreen
{
public:
CScreen(constchar fname[]);
// member functions
void Scatter();
private:
char m_dispChar;
int m_sleep;
};
#endif // CSCREEN_H