Error: expected identifier or ‘(’ before ‘int’ - C (СИ)
Формулировка задачи:
$ gcc main.c zeroonezero.c -o zeroonezero
In file included from main.c:3:0:
zeroonezero.h:4:18: error: expected identifier or ‘(’ before ‘int’
void zeroonezero(int);
^~~
In file included from zeroonezero.c:2:0:
zeroonezero.h:4:18: error: expected identifier or ‘(’ before ‘int’
void zeroonezero(int);
^~~
zeroonezero.c:4:18: error: expected identifier or ‘(’ before ‘int’
void zeroonezero(int amountnum) {#ifndef zeroonezero #define zeroonezero void zeroonezero(int); #endif
Решение задачи: «Error: expected identifier or ‘(’ before ‘int’»
textual
Листинг программы
#ifndef _1001_С #define _1001_С /* тут тело файла */ #endif