Here's a stupid question, if a user enters there name into my program, I can't get it to say the name back. I'm using an array, and i know theres a better way to do it, but i can't figure it out. Sorry for the trouble but this is a shortened of what i have
Code:#include <cstdlib> #include <iostream> char name [30]; int main() { std::cout <<"Welcome, please enter your name: "; std::cin >> name; std::cout <<"Hello " << name << ", how are things going"; }