Hi. After writing this code on Dev-C++:


Code:
#include <iostream>	

using namespace std;
		
int main()                            
{
  int name;                            
  
  cout<<"Please input your name: ";    
  cin>> name;                  
  cout<<"Hi! " + name; 
}
After I write my name and Press Enter the program closes. Why is that? Any help is greatly appreciated.