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

Small GPS recorder for pet

I’m having trouble finding a product for what I’m now imagining must be a niche use case?

I want a small device I can attach to a cat that has GPS and will periodically record my cat’s location for later retrieval when the cat comes home.

There seem to be two classes of device:

  • One that uses Blutooth for live locating of the device only when it is in Bluetooth range
  • A full live tracker that uses GPS and a cellular connection to relay your cat’s live location to you.

What I imagine is a device as simple as:

  • GPS module
  • micro SD card
  • battery
  • some controller to glue everything together, that will read a config of the sd card and will record timestamped GPS coordinates at a user specified interval to the sd card, which the user can simply remove and plug into a computer when the cat returns.

Or a more user friendly version that had Bluetooth or wifi for uploading to a phone app when the cat returns (but critically it still records the data for later retrieval, and doesn’t need a live connection to work). This also might be needed to help the GPS hone in on your rough location.

The closest thing Ive found is this:


which at least doesn’t require a cell connection and could work for my purpose in theory as I could leave the companion module and spare smart phone on the roof or something for ideal range. But the reviews aren’t great for build quality or connection between the two modules (as it still doesn’t record – it requires a live connection)

Surely the simplest device I’ve described wouldn’t need to be that big? (if the GPS needs a decent antenna, that could even be built into a collar? Or indeed, the whole device could be?)

I wasn’t sure where to post this question (I found that link above on pets.stackexchange, but I figure my question is too technical for that place) So feel free to redirect!

In summary I’m looking for a small, robust device that can be attached to a small cat. That will allow me to see (real time not needed) where my cat has been. for a reasonable price, without ongoing costs.

usa – With the border currently closed, how can I get from the US to Canada with a pet without flying or owning a car?

I’m about to move from Chicago, IL to Vancouver, BC for a new job (US citizen, I have work permit approval). I’ve arranged movers already for my stuff (coming Monday); the issue is to bring myself, my cat, and of course some clothes/laptop/etc for until I can get the things from the movers out of storage. I pretty much need to enter Canada before the end of December, for a variety of reasons. I did have a plan for doing this, but it seems I screwed up and it’s not actually an option; discussed below.

There are two obvious options to do the move.

  • Fly. (I’m not thrilled about going through two airports plus a flight near Christmas with the current state of the pandemic, but I’d do it, I guess.)

    • My cat is too big to go in the cabin.

    • Baggage hold options: AA/Delta/United have suspended pets-in-the-hold programs during COVID, Air Canada is suspended from Dec 15 – Jan 12, and I don’t know of any others.

    • Air cargo options: seem to only accept household pets when the outdoor temperature is at least 45F, which is not likely in a Chicago winter, and even if I went to Memphis or something, iffy in a Vancouver winter on the other end anyway. (Next week’s forecast is at most 44F.)

    • Use a pet ground transport company and fly myself: the first one I happened to look up is roughly $3,000, and I can’t find any that confirm online they’re actually doing cross-border moves currently anyway. Also maybe not super fun for my cat given the distance; he’d be much happier hanging out in the car with me than being in a crate for a long period of time.

    • I could drop my cat off with family (in New York, renting a car to get there – $700ish for the rental, plus gas and a night of a hotel partway) to watch him for several months, then fly myself (<$200). This mostly works, but might require some slight skirting of NY quarantine rules, some risk to my older parents who I really don’t want to give COVID for Christmas, and also means I don’t get to have my cat for at least several months, quite possibly longer.

  • Drive. (I don’t own a car.)

    • Rent a car. This was my plan, based on checking several months ago that one-way cross-border rentals seemed to be available on rental company websites. When I went to book it tonight (after long delays getting the movers’ dates sorted out), though, this seemed to no longer be an option. I’ll call some tomorrow to confirm, but even if so, returning the car during the quarantine period is also potentially difficult; I might have to rent the car for an extra two weeks where it’ll sit parked.

    • Buy a car in the next few days; I might be getting one in Vancouver eventually anyway. But importing cars from the US to Canada is a complicated and expensive process, which among other things involves paying sales tax on the car in both countries. (Chicago, incidentally, has the highest sales tax rate in the US at 10.25%; compared to just buying one in Vancouver, the net extra cost is likely to be on the order of $2-3k.) I also don’t know whether I’d be able to get Illinois registration and title quickly enough to begin the export process, especially with Christmas and also most of the DMV-equivalent offices closed due to the current increase in the pandemic.

    • Rent a car to Seattle/Bellingham (currently $1000-ish plus gas and hotels) and find another way to cross the border:

      • None of the usual buses, train, ferry seem to be running. (Maybe I missed one?)
      • I could perhaps take a cab to the border, walk across, then take a cab on the other side. I don’t know whether this is practical? It seems it’s possible but inconvenient in normal times to cross on foot here; I don’t know whether I can reasonably get a cab/Uber/etc at the border on the other side. The cat carrier is quite large and difficult to handle with a suitcase, and I also don’t know if the pet inspection stuff “works” when walking through.
      • I could send the cat with a presumably-cheaper ground pet transport option from Seattle/Bellingham, then fly myself. This seems ridiculous, but is likely cheaper (at the cost of a lot of driving) than ground transport straight from Chicago. I didn’t immediately find a pet transport company I could confirm is actually doing cross-border moves right now, though.

(Amtrak, unfortunately, only allows pets if they’re in carriers, for a max of 7 hours, which makes it not really an option; it also doesn’t help with crossing the border right now.)

I guess the current frontrunner is driving my cat to New York then flying. But I don’t like it as an option, for a bunch of reasons. Is the walk-across-the-border plan feasible? Am I missing something else that would be better?

I will provide 2050 PLR article of pet dog cats niche with big bonus for $10

I will provide 2050 PLR article of pet dog cats niche with big bonus

About This Gig

Are you looking for PLR articles about pet dogs cats animals niche? You are in the right gig

This gig includes (Everything is classified into categories):

Pets And Animals

Cats, dogs training, pet animals, pet health articles

Please don’t place your order : If you have a weak internet to download this data.

FREE BONUSES (It’s a surprise so we prefer to not reveal it now )

Order today ! and ENJOY


Pet Lover News

If you are a pet lover and and you love giving news about pets, this is the right domain for you!

Premium designed pet website & eStore

Premium designed pet website & eStore. No experience needed. Runs 100% on autopilot, new content being added every hour. Earn with Amazon Ads/Store, Adsense, Clickbank.

Start profiting in one of the HOTTEST markets with this professionally designed pet website. The site has its own pet store, blog, videos, articles, and more.

100% Automated pet Store/Blog, Valued @ $1143, High Earning Potential

Premium Design Pet Site- Fully Automated – Amazon & Ad Inc
Start profiting in one of the HOTTEST markets with this professionally designed pet website. The site has its own pet store, blog, videos, articles, and more. Earn income by selling products and ads.

100% Automated, Premium Design, pet Website, Amazon,CB, BIN Bonus
No experience needed,
new content being added everyday. Easily earn money store & ads.

Special BIN Buyers Bonuses INCLUDING ONE WHOLE YEAR of hosting ($120 VALUE)! Check the BUY IT NOW Buyer Bonus section below1

Click here to visit shoppetworld.com

shoppetworld.com is a professionally designed site created on WordPress, the most popular website platform on the planet. This makes it easy for you to update, edit, and change the site with no technical coding skills.

You don’t need to have any special knowledge about websites. I will be showing you how to run the website step-by-step if purchase at the BIN price..

This is a rare turn-key opportunity to start your own business and to make a full-time income on auto-pilot in the HOT pet market.

Additionally, I set the website to run on autopilot. New content is added every day. Which keeps visitors coming to your site and making you more money.

This is very easy for beginners to make some extra income with little effort.

The website also has its own eCommerce shop which you earn money from and you can easily add more products.

Since your site is already automated and is basically maintenance free you only need to concentrate on driving traffic to your site. The more traffic, the more money you will earn from your site. This is why we added full video courses, so you can become an expert at driving traffic to your site.

shoppetworld.com is a premium domain appraised at $1143. The appraisal was done at GoDaddy.com. View the appraisal by clicking here.

The site is an authoritative 13-year-old aged domain. Confirm the age of the domain at WHOIS Domain tools by clicking here. Please read the section below ” Details on Aged Domains” to learn more about aged domains. The “Flippa Registration” date does not indicate the age of the domain and website.

How Does shoppetworld.com Generate Revenue?

eCommerce Store – The site generates revenue through your store. Please go to the site and visit the store area. There you will see hundreds of products that will be linked to your Amazon affiliate account (We will help you set your account up if needed). When visitors purchase products on your site, you get a commission.

Amazon Ads – We have also strategically placed Amazon ads in the content of your blog and videos that are on your site. When the site adds new content, these ads are automatically placed for you. The site automatically adds new content every hour to keep visitors coming back to your site, which means more earning potential for you.

Other Earning Potential – There are many ways that you can earn money with this site. Amazon is what we have on their now so you can start right away. This website supports multiple ad spaces, where you can place your ad code from your advertising partner. You can also use Google Adsense, Clickbank, PropellerAds, and even more affiliate programs.

The Website Includes The Following Features:-

1. Premium domain name valued by GoDaddy at $1143.

2. 13-year-old aged domain for better authority and ranking with Google.

3. Highly brandable domain – shoppetworld.com

4. eCommerce pet Store with hundreds of pet products. You will be able to add more products if you want.

5. 100% Automated Website – No maintenance needed. New content automatically added every few hours

6. Easy to manage website (no coding skills needed)

7. 100s of pet videos. New video content automatically added every hour.

8. 100+ pet articles to keep visitors coming back and buying on your site.

9. User-friendly design that allows changes

10. Perfect for beginners

11. No experience needed

12. Premium Fully Licensed Theme

13. A customizable website with easy-to-use admin area

14. Professional web design

15. Mobile-ready website

16. Beautiful Full Image Mega Navigation Menu

17. Responsive design – looks great on laptops, tablets, and phones

18. Beautiful homepage slider

19. Easy monetization set up

20. Supports affiliate programs

21. Supports multiple ad networks

22. Flexible layout with many choices of ad placement

23. SEO Friendly

24. Full Social Media support – Facebook, Twitter, Linkedin, Google+, Pinterest, Linkedin, Instagram, YouTube

25. Contact form installed

26. Privacy Policy page included – A must for affiliate and ad networks

27. Terms and conditions page included – A must for affiliate and ad networks

28. Disclaimer page included – A must for affiliate and ad networks

29. About us page pre-created

30. I use a theme on the website, which has 100s of design options so that the design of every website can be completely changed. Layout, width, structure, color, design, everything can be changed so that you can change the website if you wish.

31. Easy to manage business built on WordPress, the world’s most popular content management system.

32. Optimized website for fast loading times to give the customer a flawless and easy experience on your site

What’s Included With This Sale?

– A professionally designed website with great potential for earning income.

– Full installation and set up on hosting of your choice. (1 Year Free Hosting for BIN Buyers. $230 Value)

– Free transfer of the domain to your Godaddy account, which we will help you set up your free account. (If transferred outside of GoDaddy there may be a transfer fee)

– Free Input of affiliate links.

– All website content and graphics.

– After-sale support to help you start earning income right away.

– Training on how to manage your site.

– Marketing tips and strategies.

– Training to teach you everything you need to start generating online income.


If you purchase the site at our BIN BUYER Price you will get these bonuses.


2. Advanced training on how to market your website to maximize profits.

3. Advanced training on how to manage, edit, update and add more to your sites

4. How to use free and paid ads to jumpstart your income within 30 days.

5. Amazon Affiliate Guide

6. Amazon Payday Secrets

7. Make Money With Amazon Guide

8. Ultimate Guide To Affiliate Marketing

9. Affiliate Marketing Success Secrets Revealed

10. Adsense Profit

Hours of Full Video Training Including:

11. 51 Top Traffic Sources – Here you will learn how you can start driving traffic to your site right away. More traffic, more earnings.

12. Website Traffic 101 – Learn everything you need to know about driving traffic to your website.

13. Affiliate Authority – You will learn how to master being an affiliate with this full video course.

14. FaceBook Traffic – This step-by-step master course will teach you how to drive traffic from FaceBook.

15. Social Media Authority – With this course you will learn how to drive crazy traffic to your site from other social networks like Twitter, Instagram, and more.

16. Advanced ClickBank Paycheck – This is a fully loaded course on teaching you how you can use ClickBank to earn more on your site.

What is Affiliate Marketing?

Affiliate marketing allows you to earn commissions by simply marketing other people’s services or products. As an affiliate, you will earn commissions from products sold on your site.

What makes affiliate marketing great is there is no need to process orders or do customer service. All that is done by the affiliate program.

Because you don’t have to worry about order fulfillment, you can concentrate on driving traffic to your website and generating more income.

There are literally thousands of products your visitors can choose from. We will also show you how you can add more products to your site.

One of the great things about affiliate marketing is that you can run your business from anywhere. You can enjoy that “laptop lifestyle” with this business.

Because you only have to concentrate on driving traffic and you don’t have to fulfill orders, you can easily scale and grow this business. I will be giving your resources and training on how to grow your business and maximize your profits.

Frequently Asked Questions

How Much Time Will Running This Business Take Up?

The time you spend on this business is entirely up to you. The site is ready to start generating commission for you as soon as you add your own affiliate links, so even if you only spend a few minutes a day on it you could start making money. On the other hand, if you want to make this to a full-time business, there is no limit to how far you can scale up your income. The step-by-step training I am including as a special bonus will teach you everything you need to know to maximize your profits.

Are there any expenses to run this business?

The only expense is hosting fees which will be about $11-$20 a month. I will also be giving you training and resources on paid traffic which can boost your business, but this is optional as I will be teaching you how to get free traffic to your website.

Why Am I Selling This Site?

I am a full-time internet marketer and web designer. Because of my commitments, I don’t have the time to dedicate to this site so I am passing the opportunity to you.

All the hard work of site development, graphics, coding, and acquiring and premium domain has all been done for you.

After purchase, the domain and website will be fully transferred to you.


Finding the Domain Age – Finding the age of a domain can be fairly easy with the correct tools. You can click here to look at the history of any domain. Simply go to the link and type in the domain you are looking up the age for.

When you reach the site you would simply look at the records of the WHOIS history to see approximately how old the domain is, the domain may be even-aged even further than this, but WHOIS Domain tools have been keeping records of domains for many years and are very accurate!


★★★ Good Luck ★★★

If you have any questions about this auction feel free to contact me. I’m always willing to help.


Pet Whisperer.com

Why are you selling this site?
affiliate site that I have abandoned
19119 total visits
How is it monetized?
clickbank products

Does this site come with any social media accounts?

How much time does this site take to run?

What challenges are there with running this site?

class feature – hunter multi pet power?¡ pathfinder

ok here is a very tricky question about my build we i want to play multiple animal companions and for some reason people tell me that it cant be done yet i read level 1 class features and i found this:


The hunter’s effective druid level is equal to her hunter level. If a character receives an animal companion from more than one source, her effective druid levels stack for the purposes of determining the companion’s statistics and abilities.

they key here is “more than one source” so im getting 1 companion at early game, my big cat

the second companion im planing to get is a magical beast (to be chosen) for that i need to have level 7 and this feat:


Beast Speaker
Source Heroes of Golarion pg. 21
You have trained in the ways that the beast speakers of the Tekritani once used to ally themselves with magical beasts.

Prerequisites: Handle Animal 7 ranks, animal companion with effective druid level 7.

Benefit: You can select a creature from the list of magical beasts to serve as your animal companion. You acquire and advance this beast companion in the same way as an animal companion detailed in the class feature that grants you access to your animal companion. You can also dismiss the creature, as dictated by your class feature.

You must meet additional prerequisites to select a companion with an Intelligence score of 3 or higher, as described in each creature’s entry.

lets say i pick the basilisc for the sake to make it.

the question is cna i keep my big cat + basilisk?

second question can i keep big cat + basilisk + another random companion at level 20?

Huntmaster (Ex)
Source Chronicle of Legends pg. 28
At 20th level, the hunter learns to control all manner of beasts. The hunter gains a second animal companion. Her level is considered four lower for the purposes of her second animal companion. The hunter can use her animal focus feature to grant each animal companion a different animal aspect.

and the third and more controversial question is does this pet follow the “stack wording rule”? as my level 1 feature states that they stack my druid level which overrides the -4 penalty level from HUNTMASTER level 20 capstone.

to elaborate more a beastmaster ranger can keep multiple companions with its base class but they get -3 druid level on their ranger base level for the prupose of animal companion levels, also they SHARE the levels so a beast master ranger level 5 can have 1 pet level 2 or 2 pets level 1.

beast master info:


A beast master forms a close bond with an animal companion. This ability functions like the druid animal companion ability except that the ranger’s effective druid level is equal to his ranger level – 3. The ranger gains a +2 bonus on wild empathy and Handle Animal checks made regarding his animal companion. Unlike a normal ranger, a beast master’s choice of animal companion is not limited to a subset of all possible animal companion choices—he may choose freely among all animal companion choices, just as a druid can.

The beast master may have more than one animal companion, but he must divide up his effective druid level between his companions to determine the abilities of each companion.

For example, a beast master with an effective druid level of 4 can have one 4th-level companion, two 2nd-level companions, or one 1st-level and one 3rd-level companion.

thanks for your time.

dnd 5e – Controlling an Evil aligned ‘pet’ creature for an NPC

None of your options are pretty here–where you say “evil tendencies inhibited” what you’re saying is that it is either mind-controlling them, or subverting their personality. Most of these options are very evil…but may not be illegal since your politician is subjecting a “monster” to them. But, as I say, you do have options. We’ll start with things such as spells/items.

WARNING: Make sure your players are okay with this sort of mental subversion–what your politician is doing is extremely abusive behavior.

5th level spell. Depending on how powerful of a caster laid it down, it would need to be renewed occasionally.

You place a magical command on a creature that you can see within range, forcing it to carry out some service or refrain from some action or course of activity as you decide. If the creature can understand you, it must succeed on a Wisdom saving throw or become charmed by you for the duration. While the creature is charmed by you, it takes 5d10 psychic damage each time it acts in a manner directly counter to your instructions, but no more than once each day.

In short, you give the Lamia a fairly broad-reaching Geas, such as “Be a good wife” or “Never do something that would harm me in any way” and it will take massive psychic damage if it disobeys.

It’d take a while and multiple repeat castings of this spell, but a high enough level spellcaster can, given time, rewrite sufficient chunks of an individual’s memory. Do this enough, and you can rescript their personality.

While this charm lasts, you can affect the target’s memory of an event that it experienced within the last 24 hours and that lasted no more than 10 minutes. You can permanently eliminate all memory of the event, allow the target to recall the event with perfect clarity and exacting detail, change its memory of the details of the event, or create a memory of some other event.

At Higher Levels. If you cast this spell using a spell slot of 6th level or higher, you can alter the target’s memories of an event that took place up to 7 days ago (6th level), 30 days ago (7th level), 1 year ago (8th level), or any time in the creature’s past (9th level).

Remove Curse or Greater Restoration purges all instances of this spell.

You blast the mind of a creature that you can see within range, attempting to shatter its intellect and personality.

8th level spell so this is on the rather powerful end, but a sufficiently powerful Feeblemind is unrecoverable (Int of 1 gives a -5 to saves, with no proficiency bonus, a DC of 16 is insurmountable). A feebleminded individual is basically incapable of taking initiative on anything.

This is more about changing alignment, but this is an optional rule/plane from the DMG where anyone taking a long rest on that plane has to make a Wisdom Save or become Lawful or Neutral Good–keep em there 1d4 days and it becomes a permanent change.

Caution: Send a patsy to do this with a lie about why you want it done…if your politician goes, he might risk, gasp, becoming a decent person.

As DM, you can make up magic items however you’d like. Perhaps there’s a collar that can cast Dominate Monster on the creature who is wearing it, controlled by the person who is attuned to it. Snake-girl behaves herself out of fear of the collar being activated. Or, perhaps, Reverse Sanctuary…it’s a cursed item that makes its wearer act like everyone else is protected by the Sanctuary spell.

The alignment specified in a monster’s stat block is the default. Feel free to depart from it and change a monster’s alignment to suit the needs of your campaign. If you want a good-aligned green dragon or an evil storm giant, there’s nothing stopping you.

If it suits the needs of your story for this NPC to be non-evil, then go ahead and make that change.

This is going deep into “Your players might be uncomfortable with this” territory…but you don’t need magic to change something’s behavior. Abusers do it to their victims IRL on a regular basis. Punish ‘undesired’ behavior, reward ‘desired’ behavior, and force a dependency on you.

If you still want to include magic in this, then might I suggest giving a read to this reddit post (too long to transcribe here) that provides a breakdown of how a spellcaster used relatively low-level magic to shatter the sanity of an unsuspecting girl. Obvious warning on that link, as it talks through some serious abuse.

You don’t have to explain every minute detail of a setting to your players. Your Politician has a snake girl that would normally be a dangerous monster as a pet. He probably did something unsavory to attain this control, but if he doesn’t explain what he did–then the PCs will never learn the details.