Skip to content

push homework lesson 6#8

Open
nedav347 wants to merge 1 commit intomainfrom
lesson_6
Open

push homework lesson 6#8
nedav347 wants to merge 1 commit intomainfrom
lesson_6

Conversation

@nedav347
Copy link
Owner

  • Домашнее задание к уроку
  • курса "Основы языка С++"
  • автор Недокунев А.В.
  • среда разработки Notepad++ /компилятор MinGW/
  • codepage UTF-8

Comment on lines +32 to +43
fin.open(file2);
if (!fin.is_open()){
err_open_file("2");
return 1;
}
fin.seekg(0, std::ios_base::end);
filesize = fin.tellg();
char* char_arr2 = (char*) calloc(filesize, 1);
fin.seekg(0, std::ios_base::beg);
fin.get(char_arr2, filesize);
// std::cout << char_arr2 << std::endl;
fin.close();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

напрашивается функция вместо копипасты, да?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants