Hi everyone, I'm new here :).
I was looking for a way to query an answer from the user, and then, depending on their answer, choose a number for a variable.. The part of the code im stuck on is this:::
The error I'm experiencing is: could not convert `(&ftype)->std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>](((constchar*)"Field"))' to `bool'
I am using Dev C++ is that helps
Thank you for your time,
Blackened
http://www.cplusplus.com/forum/beginner/15368/page1.html#msg76089
Those functions are templated to handle any string type. You can simplify them just like I did for the titlecase() function at the bottom of my post.
BTW, converting to lowercase is typically safer than converting to uppercase.
Good luck!