我有一個簡單的C++程序,它逐行讀取一個文件。一些行包含超過20000個字符。以下程序只能讀取那些大行的4095個字符。我認爲這是因爲緩衝區大小的限制。閱讀大篇幅的解決方案是什麼? // reading a text file
#include <iostream>
#include <fstream>
#include <string>
using nam
class Book{
public:
string _title;
string _author;
string _publisher;
Date _published;
float _price;
string _isbn;
int _page;
int _copies;
Book(void);
Book(string, string, string, Date, f