Hi. After writing this code on Dev-C++:
After I write my name and Press Enter the program closes. Why is that? Any help is greatly appreciated.Code:#include <iostream> using namespace std; int main() { int name; cout<<"Please input your name: "; cin>> name; cout<<"Hi! " + name; }