User Profile
Collapse
-
Thanks. That works just fine. I had been a little confused about pointers to start with, and going through this process actually helped me master pointer operations. I'm using 24 different possible instances of the same class for comparison, so I had to assign each one a string to hold the name (as well as pass each name to the constructor), then use "if-elseif-else" statements to compare with user input. So, a little tedious, but it's... -
Considering this is almost exactly the same as the last post, I will pretty much just copy and paste my last reply, with only a few changes:
You may want to use:
Code:using namespace std;
Leave a comment:
-
Considering the error statement, you definitely need to use the above mentioned solution:
Code:using namespace std;
Leave a comment:
-
Converting an Input String to a Variable Name
Hello -
I have been all over the web and found a few posts that are somewhat related to what I'm trying to do, but none that provided me a concise answer.
I want to prompt the user to input the name of a structure in my program. I want to then be able to manipulate that structure in my program.
For example:
Code:#include <iostream> #include <string> using
No activity results to display
Show More
Leave a comment: