// Includes
#include "stdafx.h"
#include <iostream>
#include <conio.h>
usingnamespace std;
// Main Function
void main(int argc, _TCHAR* argv[])
{
string word;
cout << "This is a echo program.\n\n";
cout << "Enter your word: ";
cin >> word;
echo(word);
}
//Echo Function
void echo(const string message)
{
cout << message << endl;
}
For some reason why the error message is showing that at line 16 cin >> word;, and in the echo function line 23 cout <<, its telling me that those operators are not matching anything in iosteam and its only those 2 lines.