I am a beginner in C++. The C++ that I code is usually on Borland since that's what the school tells us to code on.There's this code which I've attached below. It works fine in Borland but when I try using it in Visual Studio, it gives errors stating that gets() is undefined and the same problem with clrscr().I've recently installed VS so i don't know much about it. Do I install certain header files separately? I've attached only one function of the program here.
void setdata()
{
cout << "--Enter car details--" << endl;
cout << "Enter car name: " << endl;
gets(name);
cout << "Enter car type: " << endl;
gets(type);
cout << "Enter year of manufacture: " << endl;
cin >> year;
cout << "Enter kilometres driven: " << endl;
cin >> kms;
cout << "Enter rate: " << endl;
cin >> rate;
}