+ 1
Where did I go wrong
#include <iostream> using namespace std; int main() { string text; cout << " Hello what is your name? \n" ; getline(cin,text); // input block cin cout << "nice to meet you " << text; cout << “I am place holder name”; return 0; }
2 Respostas
+ 7
Try now in your third cout you use single quotes two times so it giving errors put double quotes .
#include <iostream>
using namespace std;
int main()
{
string text;
cout << " Hello what is your name? \n" ;
getline(cin,text);
// input block cin
cout << "nice to meet you " << text;
cout << "I am place holder name";
return 0;
}
+ 4
You have invalid characters in your code. This usually came from copying & pasting text in web browser. Open and view the code in a web browser, you will notice them.