/**
// 代码片段
#include <cstdlib>
#include <iostream>
#include <fstream>
using namespace std;
*/
ifstream fina;
fina.open(
"test.txt");
fina.seekg(
0,ios::end);
int endI = fina.tellg();
fina.seekg(
0,ios::beg);
int beginI = fina.tellg();
int size = endI - beginI;

 

相关文章:

  • 2023-01-20
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2022-02-18
  • 2022-12-23
  • 2021-11-24
  • 2021-05-24
猜你喜欢
  • 2021-11-30
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案