Using the code above to try and switch all the '_' (Underscore's) in the variable title to a ' ' (blank space's). Im not understanding the correct use I suppose. The error is happening in line 13 in the code above...
The error below is what it gives me.
cs216program2.cpp: In function âint main()â:
cs216program2.cpp:61: error: invalid conversion from âcharâ to âconst char*â
cs216program2.cpp:61: error: initializing argument 3 of âstd::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::replace(typename _Alloc::rebind<_CharT>::other::size_type, typename _Alloc::rebind<_CharT>::other::size_type, const _CharT*) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]â
cs216program2.cpp:62: error: âlocâ was not declared in this scope