Hello, how can i use other language other than english in c++?
Languages in c++
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..
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..
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
With the above preprocessor, If I include that in my next c++ code, I can do the following:
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++.
but my advice is not to use too much of it.
| 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++.
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.
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
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
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)
Such as IF... ELSIF, WHILE etc... that can't be changed (as far as I know)
C++ is not a microsoft programming language like functions in excel.
But if you create yourown library with your functions you can put the name you want
But if you create yourown library with your functions you can put the name you want
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)
Have a long journey on the keyboard
Have a long journey on the keyboard
