Advertisement
pfoco

Permitir Acentos no Printf em Linguagem C

Oct 5th, 2015
1,443
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.52 KB | None | 0 0
  1. /*
  2.  
  3.   * Programa: Usar acentos no printf
  4.   * Data de criação: 15/09/2015
  5.   * Autor: Eric Cancellgliere (http://programacaoemfoco.com.br)
  6.   * Versão: 1.0
  7.   * Última modificação em [15/09/2015] feita por [Eric Cancellgliere]
  8.  
  9. */
  10.  
  11. //bibliotecas
  12. #include <stdlib.h>
  13. #include <stdio.h>
  14. #include <locale.h>
  15.  
  16. int main(void){
  17.    
  18.     //comando de regionalização
  19.     setlocale(LC_ALL, "Portuguese_Brazil");
  20.    
  21.     //exibição do texto
  22.     printf ("Programação em Foco\n\n");
  23.  
  24.     system ("pause");
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement