jeudi 4 novembre 2021

how to use getline() function in user define function? [closed]

void car_parking(){//char name[30]
  string name,vaccinated,vehicleName,vehicleNo;
  system("color E0"); 
  system("pause");
  cout<<"...PLEASE ENTER THE INFORMATION GIVEN BELOW..."<<endl;
  cout<<"Enter your name use (\"_\")for space : ";
  getline(cin,name);

Aucun commentaire:

Enregistrer un commentaire