摘要:
// 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... 阅读全文
摘要:
// 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)... 阅读全文
摘要:
// 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... 阅读全文
摘要:
// 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... 阅读全文