All pastes #131838 Raw Edit

Someone

public cpp v1 · immutable
#131838 ·published 2006-08-14 23:14 UTC
rendered paste body
struct playerStats {	int level;	int exp;	int hp;	int attack;	int defense;	char status[8];	void showStats();};int main(){	playerStats x = { 1, 0, 15, 5, 0, 'none' };	cout<< x.attack;	x.showStats();	//showStats( x.level, x.exp, x.hp, x.attack, x.defense, x.status );}void playerStats::showStats() {	cout << "Level: " << level << "\n";	cout << "Experience: " << exp << "\n";	cout << "Health Points: " << hp << "\n";}