Error selected language

1

I copied a source code made in the Code Blocks program and pasted it into a project in Visual Studio C 2010 Express, compiled and is giving some errors, one of the errors is in this line:

int main(){

// Altera a linguagem do console para permitir acentos
setlocale(LC_ALL, "Portuguese"); //Erro

error: Error 2 error C3861: 'setlocale': identifier not found

    
asked by anonymous 31.05.2017 / 17:30

2 answers

1

I put this statement and the error is gone.

#include <clocale>

Do you agree?

    
31.05.2017 / 17:38
0

As mentioned by the user, the problem can be solved with the clocale include:

#include <clocale>

    
31.05.2017 / 17:38