统计一篇文章中单词个数

答:代码如下:

 include 
 #include 
 using namespace std; 
 int main(){ 
 ifstream fin("t.txt"); 
 if(!fin){ 
 cout<<"can't open file"<>buf; 
 if(fin2.eof()) 
 break; 
 count++; 
 } 
 cout<<"The number of the words is : "<