//file name = CApp.h
#ifndef _CAPP_H_
#define _CAPP_H_
#include <SDL.h>
class CApp {
public:
CApp();
int OnExecute();
};
#endif
//filename CApp.cpp
#include "CApp.h"
CApp::CApp() {
}
int CApp::OnExecute() {
return 0;
}
int main(int argc, char* argv[]) {
CApp theApp;
return theApp.OnExecute();
}
My problem is: 1) I can't seem to figure out what OnExecute is for.
2)And i don't understand this: CApp::CApp()
Can someone break the code down a bit for me to understand. Thanks in advance.

New Topic/Question
Reply



MultiQuote



|