Thanks a lot for the answer, I don't know what happens to me with the comma ^^... The Problems was that I'm reading on a Kindle and is hard to distinguish the . with the , and the " with the '. I don't know how this part works (greeting.size( ),' ') I just get the Idea from Accelerated C++: Practical Programming by Example. But now is done.
What means expected unqualified-id before string constant on C++?
Hi to everybody, I'm a learner of C++. I'll really appreciate if you can help me or teach me something.
Thank you in advance.
Code:
#include<iostream>
#include<string>
int main()
{
std::cout << "Introduce your first name:";
std::string name;
std::cin >> name;
//build the message that I intend to write.
const
Leave a comment: