#include<iostream.h>
struct PlayerData{ int strength; int charisma; int intelligence; int dexterity; };
void PrintData(PlayerData); void PrintData(const char *lineToPrint);
int main() { PlayerData myPlayerData={24,29,12,2};
const char *title="\nTHE WARTH OF ZALTHAR"; const char *copyrightLine="Copyright 2005,[Your Name Here]";
PrintData(title); PrintData(copyrightLine);
PrintData(myPlayerData);
return 0; }
void PrintData(PlayerData) { cout<<"\nStrength: "<<myPlayerData.strength<<'\n'; cout<<"Charisma: "<<myPlayerData.charisma<<'\n'; cout<<"Dexterity: "<<myPlayerData.dexterity<<'\n'; cout<<"Intelligence: "<<myPlayerData.intelligence<<'\n'; }
void PrintData(const char *lineToPrint) { cout<<lineToPrint<<"\n"; }