Fin'ora ho sempre usato la funzione gats() per aquisire intere stringhe senza dover premere invio ad ogni carattere inserito della stringa, ma da quando ho iniziato a programmare su linux ci sono stati dei problemi./tmp/ccjEXwU8.o: In function `main':
esfork.cpp.text+0xb7): warning: the `gets' function is dangerous and should not be used.
Giā in fase di compilazioni riscontro questo warning :

Codice PHP:
/tmp/ccjEXwU8.oIn function `main':
esfork.cpp:(.text+0xb7): warning: the 
`gets' function is dangerous and should not be used. 
ora volevo chiedervi se conoscete un'altro modo valito, per aquisire direttamente una stringa in un vettore char senza dover premere ogni volta invio.
Se fate anche qualche esempio mi fate una cortesia, grazie.