Hello^^
I'm doing a programm for school with selfmade *.h files. I think I got now how to make *.h files and the apertaining *.c's. After I worked a whole sunday on understanding this, I now have two problems; the first is the stranger one.
The Code:
/*Erklärung*/
#include <stdio.h>
#include <conio.h>
#include "Mathe.h"
#include "Geom.h"
#include "Menue.h"
//---------------------------------
int main (void) { //that's line 9
printf ("blah!");
return 0;
}
The error:
Erzeugen von Rechenprogramm4.obj.
C:\Users\Schule\Documents\Pelles C Projects\Rechenprogramm4\Rechenprogramm4.c(9): error #2001: Syntax error: expected '{' but found 'int'.
C:\Users\Schule\Documents\Pelles C Projects\Rechenprogramm4\Rechenprogramm4.c(9): error #2001: Syntax error: expected ';' but found '{'.
*** Fehlercode: 1 ***
Fertig.
And what's wrong? oO because I'm sitting here an hour and I don't get what's wrong. Sometimes Pelles tells me that there is an error #2001 in stdio.h o__O
:'(How can I solve the problem??
and another question;
how can I execute something from one of the header files in my main file?