摘要: // chapter4.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"int _tmain(int argc, _TCHAR* argv[]){const size_t size = 16;int carr[size];for(int idx = 0; idx != size; ++idx){carr[idx] = idx;}return 0;}debugod0... 阅读全文
posted @ 2010-06-21 14:58 南守拥 阅读(217) 评论(0) 推荐(0) 编辑
摘要: // chapter3.3.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include <bitset>using std::bitset;#include <string>using std::string;int _tmain(int argc, _TCHAR* argv[]){bitset<16> b(0xffff)... 阅读全文
posted @ 2010-06-21 14:53 南守拥 阅读(242) 评论(0) 推荐(0) 编辑
摘要: // chapter3.3.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include <vector>using std::vector;int _tmain(int argc, _TCHAR* argv[]){vector<int> ivec(10);for(vector<int>::iterator iter = i... 阅读全文
posted @ 2010-06-21 11:32 南守拥 阅读(257) 评论(0) 推荐(0) 编辑
摘要: // chapter3.2.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include <iostream>#include <string>using std::string;using std::cout;using std::cin;using std::endl;int _tmain(int argc, _TCHAR* arg... 阅读全文
posted @ 2010-06-21 09:59 南守拥 阅读(250) 评论(0) 推荐(0) 编辑