Write your question here.
I'm currently learning C++ my reading a book, and I copied some code but it doesn't seem to work, could you awesome people help a young kid who wants to follow his dream?
1 2 3 4 5 6 7 8 9 10 11 12 13
#include <iostream>
#include <string>
int main()
{
std::cout << "Please enter your first name: ";
std::string name;
std::cin >> name;
std::cout << "Hello, " << name << "!" << std::endl;
return 0;
}
#include <iostream>
#include <string>
int main()
{
std::cout << "Please enter your first name: ";
std::string name;
std::cin >> name;
std::cout << "Hello, " << name << '\n' ;
std::cout << "Enter any character to quit program " ;
char c ;
std::cin >> c ;
}