All pastes #238911 Raw Edit

Something

public cpp v1 · immutable
·published 2006-11-05 04:09 UTC
rendered paste body
// errorsdPaused.cpp In member function `int PausedDiv::Init()': dPaused.cpp no match for 'operator=' in '((PausedDiv*)this)->PausedDiv::img = SDL_LoadBMP_RW(SDL_RWFromFile(((const char*)"images/paused.bmp"), ((const char*)"rb")), 1)'note C:\Dev-Cpp\include\SDL\SDL_video.h:99 candidates are: SDL_Surface& SDL_Surface::operator=(const SDL_Surface&) // dPaused.cppint PausedDiv::Init(){	// Initialise the image	this->img = SDL_LoadBMP("images/paused.bmp");}// dPaused.hclass PausedDiv: public SDL_Surface {private:	bool paused;	SDL_Surface img;public:	bool Pause();	bool Unpause();	int Init();	void PausedDiv::Draw(SDL_Surface *screen);};// main.cppvoid DrawScene(){	dPaused->Draw(screen);}