How to pass non-keyboard characters as the argument of the called program for the Windows and Linux platforms from the command line?
Example:
./programm 123 456 "ΠΊΠ°ΠΊΠΈΠ΅-ΡΠΎ-Π½Π΅Π½Π°Π±ΠΈΡΠ°Π΅ΠΌΡΠ΅-ΡΠΈΠΌΠ²ΠΎΠ»Ρ: Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ \x1\x0\x3" I tried to screen it in different ways with the help of "", "", ``, but the results did not bring these manipulations. Used \ 0, but just 0 was entered into the program.
Added by:
Through Python, I managed to start with the necessary parameters, but I found out for myself that it is impossible to transmit a null character, it swears. But still, how to do it through the console?
#include <iostream> int main(int argc, char **argv){ for(int i=0; i<argc;++i) std::cout<<argv[i]<<"\n"; return 0;}#include <iostream> int main(int argc, char **argv){ for(int i=0; i<argc;++i) std::cout<<argv[i]<<"\n"; return 0;}- borat_brata