String handling for a newbie
I have two questions about strings.
1: How do I compare two strings within an if statement?
2: How do I glue two strings together to make one longer string?
I know these are simple issues but I haven't found answers in online tutorials.
Thanks,
BeerGut
ps: I'm using C++ strings.
Thanks for all your suggestions
I am using std::string and thanks for your help.
You have answered my questions.
Thanks again,
BeerGut
Converting strings to ints
I have another question about strings.
If I have str1 which contains "123" how do I convert this to the int 123 and back again.
I have some dates in string format yyyymmdd which I wish to increment by days and months and years.
Thanks for reading,
BeerGut