| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
我用C++的做法In Reply To:Re:一次读几行数据阿?三行吗? Posted by:maleo at 2005-10-04 14:25:08 #include <iostream>
#include <vector>
using namespace std;
int main()
{
int n = 0;
vector< vector<double> > a;
vector<double> b(8);
for (; cin >> b[0] >> b[1] >> b[2] >> b[3] >> b[4] >> b[5] >> b[6] >> b[7]; ) {
n++;
a.push_back(b);
}
cout << n << endl;
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator