Forum rules: Forum rule Nº 15 is strictly enforced in this subforum.
#78037 by codestation
Sun Jun 12, 2011 9:59 pm
ultimakillz wrote:but you can code all the variable names, output, comments, etc. in your native language as those do not matter to the computer

I dont think that he can use his native language (greek) in variable names. The only characters valid for identifiers are letters, numbers and underscore, so he is restricted to plain ASCII for that, but he can use whatever he wants to in comments and data.

@Howto, you can use any language, but the restricted keywords are gonna remain in english, also you are limited to simple letters and numbers for the variable names. As a recommendation stick to english in the source code, so if another person need to check your code he can understand it. Also don't abuse the #define macros or you could end programming something like this ;) :

Code: Select all#define o putchar
#define O main
#define OoO int
#define Oo char
#define ooO return
Oo oO0[] = {0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x0a, 0x0};
OoO O(OoO oo, Oo **o0) {
   ooO oo ? O(oo ^ oo, (Oo **)oO0) : *(Oo *)o0 ? O(o(*(Oo *)o0) ^ *(Oo *)o0, (Oo **)((Oo *)o0+1)) : *(Oo *)o0;
}


And yes, C is so crazy that the above code is perfectly valid :D
Advertising
#78039 by Howto
Sun Jun 12, 2011 10:20 pm
thanks to all for the answers i now get it :D
@codestation LOL!
Advertising
#84694 by iJimaniac
Sat Jul 09, 2011 2:21 pm
great post!
This probably sounds stupid but how long do you think it would take me to make one homebrew, Im thinking of an alarm clock that has the weather. I unfortunately have no programing experience :(
Like I said stupid question but its just an idea.
#84954 by iJimaniac
Sun Jul 10, 2011 4:07 pm
m0skit0 wrote:Give it a couple of years.

Lol, thats what I figured,
so is there somewhere on this forum where I can request hombrews or submit homebrew ideas???

Who is online

Users browsing this forum: No registered users and 1 guest