0

How to print in C++ " \ " как

Помогите, не знаю как его вывести

19th Feb 2024, 9:31 AM
Misharik
Misharik - avatar
1 Resposta
+ 1
cout << is the command to print it, (cin >> is an input) a lot of programmers use the namespace std, because they then don't have to call always the static function, just the name; and the escape character is \ (likely in most of the programming languages) the entry point is the main function and the return 0 means: is there were any errors? (0 = False, so it went properly) (if there is an error, it will return someting) withuout using namespace std: #include <iostream> int main() { std::cout << "\\"; return 0; } with using namespace std: #include <iostream> using namespace std; int main() { cout << "\\"; return 0; } I hopoe this helps
19th Feb 2024, 9:43 AM
Mihaly Nyilas
Mihaly Nyilas - avatar