H
HED
I am learning c++, and there is a lot that i dont know, so if this is
a stupid question, I am sorry. regardless, I am trying to get my
program to check and see if a char value is a certain value, and then
act appropriately. The compiler goes into fits when I do this, and if
I double click the error it opens ostream, and i figure that I really
have no business messing with that.
So, my code looks something like:
choice is a char and destination is a string. I think that the real
place that i have having trouble is in the comparing a char part of
the code. (basically I dont know how to do it and would like you to
tell me.) I have googled it, but I have a hard time finding code
snippets that explain how to do stuff.
if (choice = a)
destination = "someplace";
Thanks in advance for the help, if I need to post further
claification, please let me know.
--HED
a stupid question, I am sorry. regardless, I am trying to get my
program to check and see if a char value is a certain value, and then
act appropriately. The compiler goes into fits when I do this, and if
I double click the error it opens ostream, and i figure that I really
have no business messing with that.
So, my code looks something like:
choice is a char and destination is a string. I think that the real
place that i have having trouble is in the comparing a char part of
the code. (basically I dont know how to do it and would like you to
tell me.) I have googled it, but I have a hard time finding code
snippets that explain how to do stuff.
if (choice = a)
destination = "someplace";
Thanks in advance for the help, if I need to post further
claification, please let me know.
--HED