Witam. Mam małą prośbe jeśli to możliwe. Czy mógłbym ktoś wytłumaczyć dzielenie plików na .cpp i .h. Za przykład podam>
void cat_attributs ()
{
life_cat=;
int damage_cat=rand ()%25+1;
deffence_cat=;
int money_drop_cat=rand ()%;
exp_cat=;
}
void wild_cat_attributs ()
{
life_wild_cate=;
int damge_wild_cat=rand ()%;
deffence_wild_cat=;
int money_drop_wild_cat=rand ()%;
exp_wild_cat=;
}
void she_cat_attributs
{
life_she_cat=;
int damga_she_cat=rand ()%;
deffence_wild_cat=;
int money_drop_she_cat=rand ()%;
exp_she_cat=;
}
To jest plik .cpp, i co powinno być w pliku .h?