C
Carmen Sei
why the following code not compile
================
#include <iostream>
using std::cout; // must need for using cout
using std::endl;
#include <string>
using std::string;
int main()
{
string stringa("abc");
string stringb("bbb");
cout << merge (stringa, stringb);
} // end main
string merge ( string a, string b){
string c = a + b;
return c;
}
================
#include <iostream>
using std::cout; // must need for using cout
using std::endl;
#include <string>
using std::string;
int main()
{
string stringa("abc");
string stringb("bbb");
cout << merge (stringa, stringb);
} // end main
string merge ( string a, string b){
string c = a + b;
return c;
}