十月
百度空间 | 百度首页 
 
文章列表
 
2009年07月21日 星期二 21:41
// 最简单的MFC应用程序


// 新建新项目--Win32 Project(Empty Project)
// Project|XXX properties---Configuration Propertiees|General的Use of MFC选择Use MFC in a Shared DLL

// VS2008编译通过



#include <afxwin.h>                        // For the class li
 
2009年07月17日 星期五 18:55
/*

数组转化为vector容器
VS2008编译通过


*/


#include <iostream>
#include <vector>
#include <string>

using namespace std;

int _int()
{
    int arr[] = {1,2,3,4,5,6,7};
    size_t size = sizeof(arr)/sizeof(int);
    vector<int> vec(arr,arr+size);

    vector<int>::iterat
 
2009年07月17日 星期五 18:19
/*

目标:C++读/写文件(存入vector)
步骤:从txt文件读取,并保存至vector容器,再从vector容器取出,并写入一个新的txt文件
VS2008编译通过


toto.txt里面的内容

red red
yellow
blue
dark
green

*/


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

using namespace std;

int main()
{   
 
2009年07月16日 星期四 23:12
确切地说是

2008年04月06日 星期日 17:49

在这个空间许的愿
链接
http://hi.baidu.com/xieoy/blog/item/8fc7d2521b6e8f0a0cf3e3e6.html

没想到现在真的要学这些东西了~~

 
2009年07月16日 星期四 21:48
/*

C++读/写文件(一)
VS2008编译通过

*/



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

using std::cout;
using std::endl;
using std::string;

using std::ifstream;
using std::ofstream;

int main()
{
   //读txt文件,并输出到屏幕
    string str_readfile = "d:\\t
 
2009年07月15日 星期三 21:33
/*
使用vector和iterator

VS2008编译通过
*/



#include <iostream>
#include <vector>


using std::cout;
using std::endl;
using std::vector;


int main()
{

    vector<int> ivec;
    ivec.push_back(1);
    ivec.push_back(2);
    ivec.push_back(3);
   
 
2009年07月05日 星期日 16:17

Q66:描述一下我们彼此现在的状况是什么样的?

不错啊

 
2009年07月05日 星期日 00:32

Q31:喜欢下雨不?为什么?

喜欢偶尔下点小雨,总是晴天太单调了

 
2009年07月04日 星期六 16:02

传说中的幸福接力棒 《被点是一种幸福》

 
2009年07月02日 星期四 20:25
最近要忙起来了~
 
     
 
 
个人档案
 
奥兹国托托
男, 1岁
上次登录:
3天前
加为好友
 
   
 
订阅我的空间
 
已有人次访问本空间
 
订阅RSS  什么是RSS?

您也想拥有这样的空间?请点此申请。
     
 
最新评论
 
文章评论|照片评论


好复杂哦···
 
 

好长~~的点名…
 

有些问题的确雷,哇卡卡卡
 

[表情]
 
我也有这个嘿嘿
 
这张好看,看了后心情好!
 
     
 
好友最新文章
 
     
 
最近访客
 
 

liubin508

hackerxwar

seabdb

liuli0202liu

西图工作室

路过就足够

wazj816

stk0203
     


©2009 Baidu