Hi Guys, i have a question for you.
i wrote this
CODE
for(int k(s2.length()-1); k>=0; --k)
s2An.append(s2.at(k));
(std::string s2, s2An;)
and it doesn't work compiler, says to me this:
146 D:\my files\TEI\D cemester\texnikes prog\texn_teu_4\v1.cpp invalid conversion from `char' to `const char*'
146 D:\my files\TEI\D cemester\texnikes prog\texn_teu_4\v1.cpp initializing argument 1 of `std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::append(const _CharT*) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]'
if wrote it like this
CODE
for(int k(s2.length()-1); k>=0; --k)
s2An+=s2.at(k);
is working without problems, what is going on here??
im working in Dev-C++ v4.9.9.2
thanx for your time
sorry about my bad english