Why is the score of "Everything"? That's what I'm interested in.



  • #include <iostream>
    #include <cstring>//библиотека для команды  strcat_s.
    using namespace std;
    int main()
    {
        setlocale(0, "");
        char chSud[50] = " Привет ";
        char chRyb[50] = " Пока ";
        cout << strcat_s(chSud, chRyb);//strcat_s-команда для объединения строк.[![ Visual Studio 2015][1]][1]
        cout << chRyb;
        return 0;
    
    }
    


  • If you had read the documents on strcat_s, you would have seen that this function is being returned to the error code (0 if it was successful). And that's what you're sending back to cout. There's zero on the screen.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2