摘要:与前面只有结构体的name声明不同,初始化不同!! // Practice3_vector_sort_struct.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include <vector>#include <algorithm>#include <ios
阅读全文
摘要:// Practice3_vector_sort_struct.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include <vector>#include <algorithm>#include <iostream>#include <ctime>#inc
阅读全文
摘要:VS2008 // Practice2_vector_sort_struct.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include <iostream>#include <vector>#include <algorithm>#include <cti
阅读全文
摘要:// Practice1.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include <iostream>#include <vector>#include <algorithm> using namespace std; void printArray(v
阅读全文
摘要:原则6.4 不仅关注接口,同样要关注实现。 说明:这个原则看似和“面向接口”编程思想相悖,但是实现往往会影响接口,函数所能实现的功能,除了和调用者传递的参数相关,往往还受制于其他隐含约束,如:物理内存的限制,网络状况,具体看“抽象漏洞原则”。 抽象漏洞原则 http://local.joelonso
阅读全文
摘要:原则6.4 不仅关注接口,同样要关注实现。 说明:这个原则看似和“面向接口”编程思想相悖,但是实现往往会影响接口,函数所能实现的功能,除了和调用者传递的参数相关,往往还受制于其他隐含约束,如:物理内存的限制,网络状况,具体看“抽象漏洞原则”。 http://local.joelonsoftware.
阅读全文