ok so this is what i have but I am getting an error says 'complexReverseString': identifier not found??? where am I going wrong I looked it over to no avail
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main()
{
ifstream input;
string forward;
cout << "Please enter a string to see its reverse. (Will display reverse twice)" << endl;
input.open("information.txt");
cin >> forward;
//reverseString(forward, findStringSize(forward)); a function I'm not actually calling
input >> forward;
complexReverseString();
input.close();
}
int complexReverseString(string userInput)
{
string source(userInput);
string target( source.rbegin(), source.rend() );
cout << "The reversed string is " << target << endl;
return 0;
}