private:
int Number;
string *Name;
public:
Mokhaberat()
{
Name = new string;
cout<<"plz enter the name : ";
getline(cin,*Name);
cout<<"plz enter the Num : ";
cin>>Number;
cout<<"\n\n";
}
Hello guys .. what is wrong with this line of my code --> getline(cin,*Name) ? when the compiler comes for this line , it will pass and nothing will happen any answers ? Tnq :D notice : i want spaces ,, that is why i used getline ,, and second reason : i want to use dynamic space