c++ ifstream

#include 
#include 
#include 

using namespace std;

int main(){
    
    ifstream infile;
    infile.open("testG2");
    
    string line;
    int V,E;
    
    cout<<"Read from the file"<>V>>E;

        cout<

你可能感兴趣的:(c++ ifstream)