1
The error ( [Error] expected declaration specifiers or '...' before Numeric Constant ) is pointed out in the
setlocale(LC_ALL, "English");
However, the locale. h library and comma are present and declared in the code earlier, why do I get this error?
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <locale.h>
#ifndef _BIBLIO_H
#define _BIBLIO_H
#include "biblio.h"
#define lim 100
#define prod 500
setlocale(LC_ALL, "Portuguese");
//declarando as funções do programa
void cadastro();
int cad_fornecedor();
int cad_produto();
void menu();
setlocale must be inside a function, probably the main.
– anonimo