i'm trying to figure iut how to return a string from a function. have i missed something in the following code???
using namespace std;
string stringy ()
cout<<"Enter a string"<<endl;
int main ()
cout<<"How many times?\n";
for (int index = 0; index < number; index++)
cout<<index <<">--->>>"<< string1 <<"<<<--<"<< index<<endl;
i wrote this in emacs and am running rh 2.4.7?
it seems to compile allright but when run it will not place the entered string (string1) into the line between the index numbers.
thanks from a sel teaching newbie