What am i doing wrong in here it gives me an error and its very very basic.
enter code here
# include <iostream>
using namespace std;
int main()
{
string firstone = "giraffe academy";
cout << firstone.substr(8, 3);
return 0;
}
What am i doing wrong in here it gives me an error and its very very basic.
enter code here
# include <iostream>
using namespace std;
int main()
{
string firstone = "giraffe academy";
cout << firstone.substr(8, 3);
return 0;
}
You need to
# include <string>
that defines <<
for std::string