Say i ask a user to input a number, which will be the return value of one of my class members. How do i make it so that it would redirect me another class member, depending on the number input?
Lensva
-6
Junior Poster in Training
Recommended Answers
Jump to PostI'm not sure I understand what you want. I'll guess, probably be wrong, and then ask you to describe the problem in a different way. So here's my guess:
#include <iostream> #include <stdexcept> class Foo { int _a; int _b; int _c; public: Foo ( int a, …
All 4 Replies
Narue
5,707
Bad Cop
Team Colleague
Lensva
-6
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
Lensva
-6
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.