Olá pessoal! Em muitos casos, ao ler uma string você pode encontrar alguns problemas, por exemplo, seu programa pode pular a leitura da string seguinte. Nesses casos é necessário utilizar o SETBUF para limpar o buffer do teclado. Lembrando, não é recomendado o uso de FFLUSH. Será mais explicado na aula abaixo.
M. Bobaru, C. Pasareanu, and D. Giannakopoulou. CAV '08: Proceedings of the 20th international conference on Computer Aided Verification, page 135--148. Berlin, Heidelberg, Springer-Verlag, (2008)
A. Reid, M. Flatt, L. Stoller, J. Lepreau, and E. Eide. OSDI'00: Proceedings of the 4th conference on Symposium on Operating System Design & Implementation, page 24--24. Berkeley, CA, USA, USENIX Association, (2000)
L. Gao, S. Kraemer, R. Leupers, G. Ascheid, and H. Meyr. CASES '07: Proceedings of the 2007 international conference on Compilers, architecture, and synthesis for embedded systems, page 3--12. New York, NY, USA, ACM, (2007)
G. Ackland, D. Bacon, A. Calder, and T. Harry. Philosophical Magazine A-Physics Of Condensed Matter Structure Defects And Mechanical Properties, (1997)