PDA

View Full Version : Pure hindi programming :P


rohan
27-02-2008, 02:25 AM
was bored and tinkering around with VS08.. and ended up with this:

http://img261.imageshack.us/img261/1358/hindiprogrammingsp7.th.png (http://img261.imageshack.us/my.php?image=hindiprogrammingsp7.png)

and well.. just so that you know.. this compiles perfectly with VS08 [and VS05 too]

the source along with the executable is bundled along.. don't try running the exe file on ur standard console.. it's unicode output so you'll just see junk. Use an unicode-enabled console or output to file while running...

to explain a few things:

उप्योगित नेमस्पेस सटड; translates to: using namespace std;
अंक, फ़्लोट, वर्ण translate to int, float and char

कबाहर translates to cout, कअन्दर translates to cin
अगर - वरना translates to if - else

somethings i forgot to add:
जबतक - for loop
तबतक - while loop; तबतक ... करो : do ... while loop

also.. i didn't have luck with hindi numerals.. have to work with latin ones only..

and .. seriously.. don't try this at home.. you'll be tearing your hair apart when the compiler starts giving errors just because u missed a matra somewhere :D

The_Devil_Himself
27-02-2008, 02:45 AM
lol,nice.

Indyan
03-03-2008, 05:46 PM
Got too bored with normal stuff did you?

Pathik
03-03-2008, 05:50 PM
Lol. The Adventures of a Bored Programmer.

dOm1naTOr
03-03-2008, 07:57 PM
can u attach the fonts too?
here its full of ??? ?? ????...and whats the font name
ive many other hindi fonts installed already.

legolas
03-03-2008, 08:28 PM
its something but not different or creative.
Lol. The Adventures of a Bored Programmer.

Seems about right! :D

sandeepk
03-03-2008, 09:39 PM
Very good. But you know that you can define class, variables and function names in any Indic font and it still will be valid and program will compile. But off course you have to use valid C++/C#/VB program syntax.
Try it. Supported on VS 2002 onwards.

rohan
14-03-2008, 12:16 PM
can u attach the fonts too?
here its full of ??? ?? ????...and whats the font name
ive many other hindi fonts installed already.

The file is a standard unicode file.. it is not a RTF or similar file which makes differentiation between fonts. The reason you are not able to see it properly is that your computer is not set for these scripts properly. Go To Control Panel > Regional and Language Options > Languages and check both the checkboxes in the 'Supplemental Language support frame'.

Got too bored with normal stuff did you?

not exactly... was bored of everything else that I do...

Supported on VS 2002 onwards.

Not necessarily.. it will be supported on almost all compilers provided that they have Unicode support. I'm not sure.. whether gcc does it or not.. but rest assured there are other compilers supporting Unicode and they will compile this code prefectly fine..

satyamy
14-03-2008, 01:38 PM
nice one :D