#include <iostream>
#include <fstream>
using namespace std;
int main()
{
int A;
ifstream file("file.txt"); // there is a single "8" in the file
file >> A;
cout << A; // I get
我不知道我的代碼有什麼問題。我試圖從控制檯獲取兩個文件的文件路徑,然後使用這些文件初始化一些fstream對象,爲另一個添加ios::binary。 這裏是我的代碼的重要部分: // Function prototypes
void INPUT_DATA(fstream);
void INPUT_TARGETS(fstream);
int main()
{
// Ask the