c++ – SImple pet caring game – console

I’m a beginner programmer and i’m looking for interesting projects to improve my low skills. I tried one day to improve my skills by trying to create a small game in which a user owns a cat, and has to feed it and clean it. My main aim of the game(which yet has many illogical things like the never decreasing happiness and cleanness level) was to try and keep my code as clean and presentable as possible. The game is made in 4 different files, and I will paste them all below. I will be happy if anyone could give me help on understanding where should I improve.

Lets go into the code:


#include "Cat.h"
#include "pet game.h"
#include <iostream>
using namespace std;

int main() {
    //Create the user's profile

    //Welcome messages
            << "Welcome to Unga bonga! Here you buy pets and raise them as your kids, and try to level up, in order to finish the game!"
            << endl;

    //Command execution
    do {
    } while (true);
Cat cat;
//User user;

void showHelp() {
    cout << "The commands in this game are:" << endl
            << "1. to feed your cat, type f" << endl
            << "2. to clean your cat, type c" << endl
            << "3. to check your cat's happiness, type h" << endl
            << "4. to check your cash balance, type m" << endl
            << "5. to check your level status, type l" << endl
            << "6. to display this help message, type ?" << endl
            << "7. to exit, type e" << endl
            << "8. Finally, to play this game, enjoy!" << endl;
void commandIdentify() {
    //take input
    cin >> command;
    //identify and execute
    switch (command) {
    case 'f':
    case 'c':
        case 'h':
    case '?':
    case 'e':
        cout << "That's not a command -yet (probably)" << endl;

void feedCat() {
    cout << "Time for food!!!" << endl;

void cleanCat() {
    cout << "Let's take a bath!!!" << endl;

void checkHappiness(){

int exit() {
    return 0;

pet game.h:

    #ifndef PET_GAME_H_
#define PET_GAME_H_

#include <iostream>
#include "Cat.h"
//#include "User.h"

using namespace std;

//Global variables
char command;
int exit();

void commandIdentify();
void buyNextCat();
void showHelp();
void tutorial();
void feedCat();
void cleanCat();
void checkHappiness();

//functions defined for a future use but they cause problems right now
void checkMoney();
void checkLevel();

#endif /* PET_GAME_H_ */


#include <iostream>
#include <string>
#include "Cat.h"

using namespace std;

    happiness = 1;
    cleanness = 1;

void Cat::feed(){
    cout << "Yummy!!" << endl;
    Cat::happiness = Cat::happiness + 0.2;

void Cat::clean(){
    cout << "So soupy!!" << endl;
    Cat::cleanness = Cat::cleanness + 0.2;


#ifndef CAT_H_
#define CAT_H_

#include <iostream>

using namespace std;

class Cat {
    int happiness;
    bool happy = happiness >= 0.6;

    int cleanness;
    bool isClean = cleanness >= 0.6;
    void feed();
    void clean();
    void checkHappiness() {
        cout << "Your cat's happiness is " << happiness*100 << "%" << endl;


#endif /* CAT_H_ */

it will be great if you could tell me how to improve code

Do you think I’m a shitty person for not caring about black lives matter? ?

No.  I want to see blacks improve their situation through hard work and determination, because a healthy, economically sound and vibrant law abiding black community is good for our country.  And it’s just the right thing to do.  That said I am 100% against the BLM movement because it is racist and regressive.  

dnd 5e – Healer's feat: Is it necessary for the patient to be immobile during the caring action?

The point of the healer's feat you refer to is:

As an action, you can spend a use of a healer's kit to serve a creature and restore 1d6 + 4 hit points, plus additional hit points equal to the creature's maximum number of hit dice. The creature cannot recover hit points from this feat again until a short or long break ends.

At that specific point there are no limitations on the creature that receives healing (and, interestingly, there is no mention about the extent of this ability). When passing through RAW, the creature that receives the healing could be technically in the middle of the combat and still be healed, although I don't think that's how the rules were interpreted, since the healer's kits were destined to stabilize and not to heal .

As a man, why should I protect women as caring for children if women are equal to men?

I think I should clarify this.

The type of women who want men to protect and guide them are not feminists. they really love men and have no problems with their role as women.

Women who say they can take care of themselves generally mean it, they want to try and do everything themselves without the help of a man to interfere.



Just a quick warning, if you receive an email from an advertising network called Affinity (www.affinity.com), DO NOT INCLUDE ANY RESPONSE.

They are total garbage, they promise decent CPM rates for banners, but they actually deliver total crap ads for almost nothing. The eCPM for 300×250 above the crease with most US traffic. US / UK was $ 0.01, what a joke!

This is the screenshot of your incredible CPM rates from your control panel:

upload_2019-9-18_18-19-18.png "class =" bbCodeImage LbImage

It also took them 6 days to even show statistics on their admin panel.

I found other reports of people earning a minimum threshold of $ 100 for payment, and then their account was suddenly closed without payment and without answers.

Just trash, be careful with Affinity and never work with them, it will save you a big problem.

[ Psychology ] Open Question: Why can & # 039; t I stop caring what others think?

It's hard, my heart beats fast to any criticism or torment or humiliation or opinion.

Some people appear like they don't care and can walk through it.

Blogs and vlogs seem to make it so easy. But giving **** what others think is hard …

What's the secret? . (tagsToTranslate) yahoo (t) answers (t) questions (t) Social Science (t) Psychology

[ Other – Politics & Government ] Open question: Why does the West fail so terrible in human goodness, by not caring for refugees?

If he needed help, wouldn't he want those who can help him do it?
Does God seem to want us to help each other? .