上一页 1 ··· 3 4 5 6 7

Practice3_vector_sort_struct.cpp

摘要: // Practice3_vector_sort_struct.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include <vector>#include <algorithm>#include <iostream>#include <ctime>#inc 阅读全文
posted @ 2017-02-27 21:32 cleverlzc 阅读(81) 评论(0) 推荐(0) 编辑

Practice2_vector_sort_struct

摘要: VS2008 // Practice2_vector_sort_struct.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include <iostream>#include <vector>#include <algorithm>#include <cti 阅读全文
posted @ 2017-02-27 12:04 cleverlzc 阅读(140) 评论(0) 推荐(0) 编辑

a demo of vector of STL

摘要: // Practice1.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include <iostream>#include <vector>#include <algorithm> using namespace std; void printArray(v 阅读全文
posted @ 2017-02-25 14:49 cleverlzc 阅读(90) 评论(0) 推荐(0) 编辑

抽象漏洞原则

摘要: 原则6.4 不仅关注接口,同样要关注实现。 说明:这个原则看似和“面向接口”编程思想相悖,但是实现往往会影响接口,函数所能实现的功能,除了和调用者传递的参数相关,往往还受制于其他隐含约束,如:物理内存的限制,网络状况,具体看“抽象漏洞原则”。 抽象漏洞原则 http://local.joelonso 阅读全文
posted @ 2017-02-12 12:15 cleverlzc 阅读(207) 评论(0) 推荐(0) 编辑

不是抽象的漏洞,而是本质复杂性

摘要: 原则6.4 不仅关注接口,同样要关注实现。 说明:这个原则看似和“面向接口”编程思想相悖,但是实现往往会影响接口,函数所能实现的功能,除了和调用者传递的参数相关,往往还受制于其他隐含约束,如:物理内存的限制,网络状况,具体看“抽象漏洞原则”。 http://local.joelonsoftware. 阅读全文
posted @ 2017-02-12 12:13 cleverlzc 阅读(132) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7