Dennis Stosberg wrote:

But why should anyone want this?

--- german.h: #define ganzzahl int
#define solange while
#define schreibef printf
----

--- test.c:
#include <stdio.h>
#include <german.h>

ganzzahl main() {
    ganzzahl a = 0;
    solange(a < 5) {
        schreibef("Dies ist Zeile %d\n", a);
        a++;
    }
}
---

Regards, Dennis



Nevermind why...you have the braces in the wrong place.

This is correct:

#include <stdio.h>
#include <german.h>

ganzzahl main()
{
        ganzzahl a = 0;
        solange(a < 5)
        {
                schreibef("Dies ist Zeile %d\n", a);
                a++;
        }
}

---
Roberto

Attachment: pgp00000.pgp
Description: PGP signature



Reply via email to