摘要:
for语句的执行顺序2007-09-08 10:58Theforstatement is written:for(e1;e2;e3)statementFirst,e1, usually an assignment statement, is executed. Thene2, usually a comparison, is evaluated. Iffalse, the for-loop terminates. Iftrue,statementis executed. Finally,e3, usually an assignment statement, is executed, and 阅读全文
posted @ 2009-06-15 22:13
小 楼 一 夜 听 春 雨
阅读(11155)
评论(0)
推荐(0)
摘要:
#include <fstream>#include <vector>using namespace std;int main(){ ifstream ifs; ifs.open("1.txt"); if(ifs == NULL) return; vector< vector<int> > vec; vector<int> vec_tmp; int tmp; int i = 0; while (ifs.good()) { ++i; ifs>>tmp; vec_tmp.push_back(tmp); if 阅读全文
posted @ 2009-06-15 20:29
小 楼 一 夜 听 春 雨
阅读(1483)
评论(0)
推荐(0)

浙公网安备 33010602011771号