E D R , A S I H C RSS

파일 입출력

No older revisions available

No older revisions available



~cpp

 #include <iostream> 
#include <fstream> 
#include <string> 

using namespace std; 

int main() 
{ 
    ifstream fin; 
    fin.open("score3.txt"); 
    string temp; 
    int i=0; 
    while(fin >> temp) 
    { 
        cout << temp; 
        i++; 
        if(i==11) 
        { 
            cout << endl; 
            i=1; 
        } 
    } 
     
} 
 
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:31:24
Processing time 0.0180 sec