Noch ein problemm mit typedef
-
hallo habe folgendes
in ATD.h#ifndef ATD_h #define ATD_h #endif #define MaxSize 300 typedef char Type; typedef Type String[MaxSize];
in Wordproceesor.h
#ifndef ATD_h #define ATD_h #endif #include in MyString.c [cpp] . . . eine funktion die was von mystring benutzt
z.b.
#ifndef MyString_h
#define MyString_h
#endifvoid klo(FILE *MtFile, Type *Line, int a, int b);
[/cpp]in MyString.c
void klo(FILE *MtFile, Type *Line, int a, int b);
wiso bekomme ich immer 1 milionen fehler.
Ich sitze in ein internet cafe und die haben kein floppy also kann der code fahlsch sein aber wiso bekomme ich ueberall wo ich Type *. benutze ein fehler in der deklaration der funktion
-
in ath.h und wordproceesor.h
#ifndef ATD_h #define ATD_h
geht nicht
#ifndef ATD_h #define ATD_h #endif
was soll das überhaupt bringen ? wenn dann
#ifndef ATD_h #define ATD_h // includes // define // typedefs // usw #endif
typedef Type String[MaxSize];
von woher ist string ? wie sieht es aus ?
usw...
mach erstmal dein präprozessor richtig (http://tutorial.schornboeck.net/pp_if.htm) und stell und zeig dann nochmal dein code