Before hand I thank all for reading and especially those how try to help
I want to know do we have c or c++ in other languages?
Second question is that before compiling my code I can type after printf command messages in any language I want and after compilation those languages are not displayed at all and all I can see is some strange characters
I want to know do we have c or c++ in other languages?
What?
Second question is that before compiling my code I can type after printf command messages in any language I want and after compilation those languages are not displayed at all and all I can see is some strange characters
You mean comments? Like that?
1 2 3 4 5 6
std::cout << "Hello"; //Outputs greeting to user
return 0;
/* Will add two numbers together
and output it to the screen */
void add(int a, int b)
I can type this before compiling and after compilation It wont display
I doubth that those characters can fit to the extended ASCII set, so using printf is out of question. You can try wprintf, but you will have to correctly set your locale and save source file with correct encoding. Not t mention that Windows console is really bad at Unicode support.
do we have translation of c or c++ languages in other languages?
No. Even if we would it would not be C++ anymore as it not conforms Standard.
I got answer to second from you
But still first part is not clear
see I can type in note and word in any language i want but in that black screen those characters vanishes
printf does not support anything aside from extended ASCII set. Windows console is really bad at Unicode support too.
You need to learn about different encodings, what is the difference, learn about what different versons of functions support, about locales and how do they work. And it is still unlikely that your program will work for everyone if you will use standard console.
*post edited: Apart from this steps you will also need to set the command prompt font to one that has correct glyphs for your language. I just quickly checked on Windows. The command prompt shows boxes as the font does not have the glyphs. Cygwin console shows correct characters though.