I'm in a Comp Sci class at my high school and I'm trying to get a string to work. This is my program. My compiler is IBM Visualage 4.0 and the error i get is "MSG CPPC0063E: The text"{" is unexpected." Any help you could give me would be greatly appreciated.#include <iostream.h>
#include <string.h>
void verse(string lanimal, string lsound)
{
cout << "Old MacDonald had a farm Ei Ei Ho and on that farm he had a " << ;
cout << lanimal << "Ei Ei Ho" << endl;
cout << "With a " << lsound << " " << lsound <<"here and a " << lsound << " " << lsound << "there." <<endl;
cout << "Here a " << lsound << "there a " << lsound << "everywhere a " << lsound << " " << lsound << "." <<endl
cout << "Old MacDonald had a farm Ei Ei Ho" << endl;
}
int main(string ganimal, string gsound)
{
cin >> ganimal;
cin >> gsound;
verse(gsound,ganimal);
return 0;
}
Build FIRST, ask questions later.