vendredi 25 août 2017

Is c++ std_lib_facilities.h still used?

i'm learning C++ from programming principles and practice. There they have given sample program:

// read and write a first name
#include "std_lib_facilities.h"
int main()
{
    cout << "Please enter your first name (followed by 'enter'):\n";
    string first_name; // first_name is a variable of type string
    cin >> first_name; // read characters into first_name
    cout << "Hello, " << first_name << "!\n";
}

When types same in visual studio, it gives error for header file. I'm confused with this header file. Is it still used? what else i can use instead of this and what header files do programmer use?

Aucun commentaire:

Enregistrer un commentaire