FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Languages in c++





SnirD
Hello, how can i use other language other than english in c++?
Helios
Well I know that in Python you have some encoding options.

Python is built on C(i guess).. and C++ is C but expanded so maybe you can somehow program an encoding..

google for c++ encodings

or something like that..
lxcid
The only solution to your problem i think of is using preprocessor. Make a header file. In your header file, #define your own stuff. like for example

Code:

#DEFINE out printf
#DEFINE in scanf
#DEFINE SINT signed int


With the above preprocessor, If I include that in my next c++ code, I can do the following:

Code:

#include "[the above header file]"

SINT a = 5;

out("This is my new alternative way to call printf!");
in("%d", a);


See with preprocessor allow me to do crazy stuff like that. Don't worry, all the preprocessor do is change the defined word to the original one in your code (e.g. out to printf) before compilation. Through this if you define correctly, you can implement your "own" way of programming in c++. Razz but my advice is not to use too much of it.
kv
I don't think he is refering to change of function names, keywords, etc, but might want to use some other language data in his code. Don't know what kind of support c++ has for different character sets though.
Shirish
one can use unicode format if available within his compiler

It contains characters for several languages

othe way is

you can define a mapping for english to your language
and change the country code in dos

another method is that you create your own font and then use it indstead of english in graphical by registering the new font
Deckard
C++ is only in English man, you can use any variable you want, but you will only have the langage itself in English.

Such as IF... ELSIF, WHILE etc... that can't be changed (as far as I know)
johner69
C++ is not a microsoft programming language like functions in excel. Laughing
But if you create yourown library with your functions you can put the name you want
Deckard
Well you can make your librairies but the language itself will be english... unless you decide to make your own versoin of the MFC (Microsoft Foundation Classes) Shocked

Have a long journey on the keyboard Wink
Related topics
What computer languages you know?
True Basic
Programming links, info, and tutorials
DreamWeaver or Visual Studio
Game making - anyone interested?
A little help on C++
Introducing myself...
***** Hello nice to meet you *****
[php] Php Editor
Poker
Game Programming Engine
Best Programming Language to Use
Java 3D game programming and OpenGL
Running Linux without installing
3 Websites To Get Started With Learning C++ Programming Lan
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.