How can I swap the first and last letters of the input stream in this program?
Hi, this is part of an assignment I was given in my introductory programming course. I simply need to know how I could swap the first and last letters of the input in this program:
Code:
int main()
{
cout << "---------------------------------------------------------" << endl;
cout << " Letter Swapping Program" << endl;
cout << "---------------------------------------------------------"