自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 资源 (16)
  • 收藏
  • 关注

原创 关于内联函数(inline)和宏的一些理解

1.内联函数和宏相比,可以调试,宏不行。2.和函数相比,编译以后,直接内嵌在主函数里,不用走调用函数,保存环境的流程。因而省去函数调用开销。3.内联函数和宏相比,不是简单的代码块替换,减少一些安全隐患:例如:// 返回 i 的绝对值的宏#define unsafe(i) \         ( (i) >= 0 ? (i) : -(i) ) // 返回 i 的绝对值

2012-09-18 23:53:16 637

原创 免费unix shell账户申请网站

花了一些时间找到一个网站,可以免费申请shell 账户,系统是FreeBSD 9.0的。申请网址:http://www.cjb.net/cgi-bin/shell.cgi?action=signup申请后可以使用SSH登录时,hostname使用shell.cjb.net可能登录不了。解决方法是,把shell.cjb.net直接替换成216.194.70.6,到目前为止还可

2012-09-15 22:24:02 1978

转载 关于C++ 拷贝构造函数,深拷贝和浅拷贝的理解

对于普通类型的对象来说,它们之间的复制是很简单的,例如:int a=88;int b=a; 而类对象与普通对象不同,类对象内部结构一般较为复杂,存在各种成员变量。下面看一个类对象拷贝的简单例子。#include iostream>using namespace std;class CExample {private:     int a;pu

2012-09-09 10:50:30 681

原创 我的处女面——2012年校招杭州华为面筋

谨以这篇文章纪念我踏入职场的处女面。9月初,华为正式启动了校园招聘。我也如愿收到了她的短信通知。首先是9月1日的上机考试,在浙大玉泉斜对面的沸蓝网吧(好像是这个名字吧,具体记不清了)。那天是周六,17:30准时到了考场,安排了一个机位,紧接着就开始考试。我选的是C/C++方向,考题总共3道,给定时间1小时,要求在VC++ 6.0下完成题目。题目不算难,但是好久没有写代码的缘故,

2012-09-08 23:09:07 2233

原创 2012年华为软件工程师机试题

今天下午五点半参加了华为的软件工程师上机考试,用的是C,给定时间1小时15分钟。下面把题目贴出来~1.题目描述(60分):通过键盘输入一串小写字母(a~z)组成的字符串。请编写一个字符串过滤程序,若字符串中出现多个相同的字符,将非首次出现的字符过滤掉。比如字符串“abacacde”过滤结果为“abcde”。要求实现函数: void stringFilter(cons

2012-09-01 21:58:44 1996

glpk-4.34-setup.exe

Windows 7上安装pulp和glpk步骤: 亲测环境: Windows 6.1.7601 Service Pack 1 Build 7601 x64 Python 2.7.11 PuLP 1.6.8 GLPK 4.34 安装步骤: 1、下载PuLP安装包:前提是,已安装python2.6以及2.6以上版本,在网页(https://pythonhosted.org/PuLP/main/installing_pulp_at_home.html)上点击PuLP zipfile下载pulp包,当然,也可以在我的资源里下载 2、安装PuLP:将zipfile解压缩,并在命令行窗口中,进入解压缩的目录,然后输入命令:setup.py install 3、下载glpk安装包:在网页(https://sourceforge.net/projects/gnuwin32/files/glpk/4.34/)上,下载glpk-4.34-setup.exe(也可以在我的资源里下载),然后双击默认安装 4、按照以上步骤,安装完以后,写一个.py的脚本并运行,脚本内容: from pulp import * pulp.pulpTestAll() 然后,会看到以下类似输出结果: D:\002-Task_150524\117-17data_thesis\004-code\testPulp.py Testing zero subtraction Testing inconsistant lp solution Testing continuous LP solution Testing maximize continuous LP solution Testing unbounded continuous LP solution Testing Long Names Testing repeated Names Testing zero constraint Testing zero objective Testing LpVariable (not LpAffineExpression) objective Testing Long lines in LP Testing LpAffineExpression divide Testing MIP solution Testing MIP solution with floats in objective Testing MIP relaxation Testing feasibility problem (no objective) Testing an infeasible problem Testing an integer infeasible problem Testing column based modelling Testing dual variables and slacks reporting Testing fractional constraints Testing elastic constraints (no change) Testing elastic constraints (freebound) Testing elastic constraints (penalty unchanged) Testing elastic constraints (penalty unbounded) * Solver pulp.solvers.PULP_CBC_CMD passed. Solver pulp.solvers.CPLEX_DLL unavailable Solver pulp.solvers.CPLEX_CMD unavailable Solver pulp.solvers.CPLEX_PY unavailable Solver pulp.solvers.COIN_CMD unavailable Solver pulp.solvers.COINMP_DLL unavailable Testing zero subtraction Testing inconsistant lp solution Testing continuous LP solution Testing maximize continuous LP solution Testing unbounded continuous LP solution Testing Long Names Testing repeated Names Testing zero constraint Testing zero objective Testing LpVariable (not LpAffineExpression) objective Testing LpAffineExpression divide Testing MIP solution Testing MIP solution with floats in objective Testing MIP relaxation Testing feasibility problem (no objective) Testing an infeasible problem Testing an integer infeasible problem Testing column based modelling Testing fractional constraints Testing elastic constraints (no change) Testing elastic constraints (freebound) Testing elastic constraints (penalty unchanged) Testing elastic constraints (penalty unbounded) * Solver pulp.solvers.GLPK_CMD passed. Solver pulp.solvers.XPRESS unavailable Solver pulp.solvers.GUROBI unavailable Solver pulp.solvers.GUROBI_CMD unavailable Solver pulp.solvers.PYGLPK unavailable Solver pulp.solvers.YAPOSIB unavailable 表示已经成功安装pulp和glpk

2017-08-29

pulp-1.6.8.zip

Windows 7上安装pulp和glpk步骤: 亲测环境: Windows 6.1.7601 Service Pack 1 Build 7601 x64 Python 2.7.11 PuLP 1.6.8 GLPK 4.34 安装步骤: 1、下载PuLP安装包:前提是,已安装python2.6以及2.6以上版本,在网页(https://pythonhosted.org/PuLP/main/installing_pulp_at_home.html)上点击PuLP zipfile下载pulp包,当然,也可以在我的资源里下载 2、安装PuLP:将zipfile解压缩,并在命令行窗口中,进入解压缩的目录,然后输入命令:setup.py install 3、下载glpk安装包:在网页(https://sourceforge.net/projects/gnuwin32/files/glpk/4.34/)上,下载glpk-4.34-setup.exe(也可以在我的资源里下载),然后双击默认安装 4、按照以上步骤,安装完以后,写一个.py的脚本并运行,脚本内容: from pulp import * pulp.pulpTestAll() 然后,会看到以下类似输出结果: D:\002-Task_150524\117-17data_thesis\004-code\testPulp.py Testing zero subtraction Testing inconsistant lp solution Testing continuous LP solution Testing maximize continuous LP solution Testing unbounded continuous LP solution Testing Long Names Testing repeated Names Testing zero constraint Testing zero objective Testing LpVariable (not LpAffineExpression) objective Testing Long lines in LP Testing LpAffineExpression divide Testing MIP solution Testing MIP solution with floats in objective Testing MIP relaxation Testing feasibility problem (no objective) Testing an infeasible problem Testing an integer infeasible problem Testing column based modelling Testing dual variables and slacks reporting Testing fractional constraints Testing elastic constraints (no change) Testing elastic constraints (freebound) Testing elastic constraints (penalty unchanged) Testing elastic constraints (penalty unbounded) * Solver pulp.solvers.PULP_CBC_CMD passed. Solver pulp.solvers.CPLEX_DLL unavailable Solver pulp.solvers.CPLEX_CMD unavailable Solver pulp.solvers.CPLEX_PY unavailable Solver pulp.solvers.COIN_CMD unavailable Solver pulp.solvers.COINMP_DLL unavailable Testing zero subtraction Testing inconsistant lp solut

2017-08-29

802.1AS-2011

精确时间同步协议,是基于以太网链路层的IEEE1588时间同步协议的简化版,英文原版。

2012-10-30

excel 物品总价自动计算

excel中存放一张物品单价列表,每个物品标明了数量,根据物品数量和单价计算出所有物品总价。表格中另添一个按钮,可将所有物品数量清零。 涉及知识点:excel函数,宏,按钮调用宏

2012-10-21

华为2012软研C++编程题

华为2012校园招聘软研C++编程题,环境:VC++6.0,题数:3,时间:1小时。

2012-09-09

gdb_reference_v4

gdb 调试命令快速手册,涵盖了大部分常用指令,及其简单用法

2012-07-26

自己动手写嵌入式操作系统DLL预处理cpp文件

把《自己动手写嵌入式操作系统》上的dll预处理文件代码抄了一遍,在VS2005上调试通过。使用时,(1)把代码粘贴到建好的控制台工程主文件里;(2)修改打开的文件路径;(3)编译运行

2012-03-06

如何看datasheet

关于如何看Datasheet 的一些教程,有较详细的注释,英文的。一些做硬件的朋友肯定需要了解的。

2011-11-18

软件项目文档模板

新大陆的软件项目文档模板,这里共享一下!从可行性分析一直到客户验收,一套不错的文档!

2011-11-15

Writing Solid Code

Writing Clean(Solid) Code 英文版 找了好久才找到,提供分享! Written by Steve Maguire Followed by Dave Moore Director of Development, Microsoft Corporation

2011-08-15

PeekPocket_src

用来搜索周边范围内的热点(Access Point) Windows Mobile 6.0下使用 VS2005下编译通过 由于加入编译出错时的解决方法 因此分数会高一些

2011-08-15

wiki离线编辑器 下载

很好用的东西,有时候会卡住,关闭玩重新打开就可以了

2011-07-27

MFC Scrollbar 实例

MFC Scrollbar 实例 VC MFC Scrollbar 实例 VC MFC Scrollbar 实例 VC MFC Scrollbar 实例 VC MFC Scrollbar 实例 VC

2011-04-05

Communications of the ACM July 2010.pdf

美国计算机通讯协会 July 2010 PDF

2011-02-21

多普达8125/838 说明书

多普达8125/838 说明书 主要WM5.0的使用,对初学者应该有些帮助 不过貌似现在只要999元就可以买到了,原来是2860 降得好快!!!

2010-02-02

WinSocket VC6.0

在VC6.0下,使用MFC类做的关于WinSocket的简单文件传输(只能客户端向服务器端发送)以及聊天室功能,修改注释可以得到聊天功能,文件传送和聊天功能不能并用

2010-02-01

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除