[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT - Programming Languages w/o English Syntax



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: pgpdrs4DcTwVS.pgp
Description: PGP signature


Reply to: