dawn my lover

dawn my lover::chase my dream

导航

<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

统计

公告

交流技术,畅谈人生

常用链接

留言簿

随笔分类

随笔档案

文章分类

搜索

最新评论

阅读排行榜

评论排行榜

2010年1月22日 #

vector

// vector.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <iostream>
#include <vector>
using namespace std;

int main()
{
    vector<int> squares(100);
    for (int i=0;i<squares.size();i++)
        squares[i]=i*i;
    for (int i=0;i<squares.size();i++)
        cout<<i<<" "<<squares[i]<<endl;
    return 0;
}

posted @ 2010-01-22 18:27 Ericd 阅读(144) | 评论 (0)编辑 收藏

start

Hello,大家好

这是我的第一篇cpp博客!

posted @ 2010-01-22 13:28 Ericd 阅读(156) | 评论 (0)编辑 收藏

仅列出标题