I am supposed to write a Card class for my C++ class and have it display a single card. It builds with no errors, but when I go to run it, it does not display the card. I don't know what I'm doing wrong here.
Although it does give me one warning:
Warning C4717: 'Card::Card' : recursive on all control paths, function will cause runtime stack overflow
I just told you exactly where and what's wrong. What more do you need? If you don't know enough C++ to understand what people tell you maybe, just maybe, the problem is on your end.
You may easily understand how to fix it, because of that knowledge you hold, you believe everyone else can understand how to do it as well. You've probally been programming alot longer than I have, Me: I only have 3 weeks in programming C++. So forgive me for saying this, But right now you are unknowingly being quite rude and disrespectful.
That is why this specific Thread is the Beginners Section, because I am indeed a Beginner.
For me, being told what & where the problem is in my code does not help me understand how to fix the problem.
I don't know how I can phrase "you create a card in the constructor of card, and this in turn leads to the constructor being called again and again" any simpler. It's neither disrespectful nor rude to expect someone to either know or learn the terminology of the problem when they ask a question.