lundi 19 mars 2018

The best method for filling char array (gets vs cin.getline)

I'm using C ++ 11. I'm wondering if there are any advantages to using cin.getline () compared to gets ().

I need to fill a char array.

Also, should I use fgets or getline for files?

Aucun commentaire:

Enregistrer un commentaire