Hello, I can not google it. There is a program code.

int main(int argc, char* argv[]) { setlocale(LC_ALL, "rus"); // корректное отображение Кириллицы char buff[50];// Создает обьект типа Чар ifstream fin("cppstudio.txt"); Создает обьект типа ifstream и передает в конструктор название файла fin >> buff; // а вот эта строчка не понятна, как это работет ? что значит >> system("pause"); return 0; } 
  • one
    If it is quite simple, then >> allows you to read data from a file (cppstudio.txt) into the buff array. - evilnw
  • one
    I tried to drive in Google: c++ >> . One of the links: What does record mean >> or << in code - jfs
  • one
    Possible duplicate question: What does the record >> or << in the code mean - jfs
  • one
    @jfs is not a duplicate once (for now). There was a speech about the arithmetic operator, and here about its overloaded version for I / O. Despite the similarity, the questions do not intersect at all. - Pavel Mayorov
  • one
    @jfs question is a heading with text, not just one heading - Pavel Mayorov

1 answer 1

This is the placement of characters from the cppstudio.txt file into a char char [50] symbol array

  • I am interested in exactly how the assignment occurs? Thank you - Accami
  • @Accami system library internals - Pavel Mayorov