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