having trouble them them!!
this program has no purpose except to teach me about classes (incase you're wondering)
CPlayer Class
Now here is the main part of my code.Code:// Player.cpp: implementation of the CPlayer class. // ////////////////////////////////////////////////////////////////////// #include "iostream.h" #include "Player.h" ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CPlayer::CPlayer() { } CPlayer::~CPlayer() { } void CPlayer::jump() { cout << "Player jumped!"; }
for some reason this ain't working so could someone spot a mistake in hereCode:#include <iostream> using namespace std; void main() { CPlayer guy; guy.jump(); // The guy suppose to JUMP here but he doesn't!!! }





)
Reply With Quote