自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(30)
  • 资源 (8)
  • 收藏
  • 关注

翻译 【管理学习】领导力--1

事故和情绪管理有关使理解你所担忧,必将站在你的角度思考;把思想付诸行动的人是企业家把行动提炼为思想的人是教授一个人蒙在鼓里,长期会窒息而亡;救他的人有两个:击鼓的人(你的贵人)和破鼓的人(你的恩人)用情商提高领导力(影响力)把自己的思想装到别人的头脑;调动别人的情绪,通过恐惧和诱因!领导力就是让利益相关人获得好情绪的能力!层次:

2015-01-13 23:43:51 520

翻译 【管理学习】诱因--恐惧--约束

人行为发生的动力:1. 名誉2. 利益3. 生命行动了,是因为诱因够了,如果诱因够了还不动,是因为恐惧不够。人求三字:名利情只求名利,不求情:物质在丰富化,内心在沙漠化诱因:正激励(使得到名利情);  恐惧:负激励(使失去名利情)两个力量足够,可以做任何事情;自制:自行给自己诱因和恐惧被制:被外界给诱因和恐惧约束是定数!人

2015-01-13 23:20:36 512

原创 职场写邮件的注意事项

简明扼要,突出主题,行文通顺对于业务、客服、产品等非研发部门,使用通俗语言不轻易承诺,除非承诺的事情有十足把握,承诺的事情一定要办到用数据说话计划是计划,进展是进展,结论是结论,让对方无误解确定的事情不使用可能、大概、应该;不确定的事情要知会对方风险;能确定但未确定的事情,一定要确定紧急的邮件,及时作出回应,不要想着等事情做完后再答复,可以先答复进度和计划尽量使用段落、

2014-11-03 23:41:10 778

原创 排序算法--插入排序

#include template void InsertSort(T iData[], size_t iBegin, size_t iEnd){ size_t iCurPos = iBegin+1; T iCurValue; size_t p = 0; while (iCurPos <= iEnd) { iCurValue = iData[iCurPos]; p =

2014-01-05 21:44:53 436

原创 排序算法--归并排序

#include #include //从 iM 将 iData[] 分为两个有序序列 template void Merge(T iData[], size_t iBegin, size_t iM, size_t iEnd){ T *iTmpData = new T[iEnd-iBegin+1]; assert(iTmpData); size_t r = 0; size_t

2014-01-05 21:44:18 474

原创 排序算法--快排

#include #include template size_t Partition(T iData[], size_t i, size_t j){ T iCurValue = iData[i]; while (i < j) { if (iData[j] <= iCurValue) { iData[i] = iData[j]; while (i < j)

2014-01-05 21:43:31 474

原创 排序算法--基数排序(箱排序的改进)

#include #include template size_t FindDepth(T iData[], size_t iBegin, size_t iEnd){ size_t iMaxDepth = 0; size_t iCurDepth = 0; char cData[15] = ""; while (iBegin <= iEnd) {

2014-01-05 21:42:48 506

原创 排序算法--选择排序

template void SelectSort(T iData[], size_t iBegin, size_t iEnd){while(iBegin {size_t iMinPos = iBegin;size_t p = iBegin + 1;while(p {if (iData[p] iMinPos = p;p++;}if (iMinPos

2014-01-05 21:41:21 474

原创 排序算法--Shell排序

#include template static void ShellSubSort(T iData[], size_t iBegin, size_t iEnd, size_t n){ if (iEnd < iBegin + n) return; size_t iCurPos = iBegin+n; T iCurValue; size_t p = 0; while (iC

2014-01-05 21:40:38 549

原创 排序算法--冒泡

#include template void BubbleSort(T iData[], size_t iBegin, size_t iEnd){ bool bHasChange = false; T iTmp; size_t p = iEnd; while(iEnd >= iBegin) { bHasChange = false; p = iEnd; while(

2014-01-05 21:38:31 433

转载 CLOSE_WAIT

http://kingyang85.blog.163.com/blog/static/1287536762010112101926245/1  CLOSE_WAIT状态的生成原因[转] CLOSE_WAIT状态的生成原因首先我们知道,如果我们的Client程序处于CLOSE_WAIT状态的话,说明套接字是被动关闭的!因为如果是Server端主动断

2013-10-17 09:34:50 483

转载 http://www.blogbus.com/eastsun-logs/7762285.html

http://www.blogbus.com/eastsun-logs/7762285.html摘自《UNIX NETWORK PROGRAMMING》chapter 6p144  对于常见的input操作,一般分为两个步骤:1.  wait to be ready2.  copy data from kernel buffer to user

2013-10-14 23:28:51 1080

转载 C++代码优化方法总结

优化是一个非常大的主题,本文并不是去深入探讨性能分析理论,算法的效率,况且我也没有这个能力。我只是想把一些可以简单的应用到你的C++代码中的优化技术总结在这里,这样,当你遇到几种不同的编程策略的时候,就可以对每种策略的性能进行一个大概的估计。这也是本文的目的之所在。目录:  一. 优化之前  二. 声明的放置  三. 内联函数  四. 优化你的内存使用  五. 速度

2013-08-24 14:53:50 729

转载 Linux中/proc/[pid]/status详细说明

[root@localhost ~]# cat /proc/self/status Name: cat State: R (running) SleepAVG: 88% Tgid: 5783 Pid: 5783 PPid: 5742 TracerPid: 0 Uid: 0 0 0 0 Gid: 0 0 0 0 FDSize: 256 Groups: 0

2013-08-24 14:20:49 1256

转载 基于DS18B20测温系统解决方案

英创嵌入式主板以其优异的稳定性、独特的设计及方便使用等优点,在嵌入式领域占有一席之地。在工业现场,经常有监测环境温度的需求,本方案应用DS18B20为温度采集芯片,与英创嵌入式主板的GPIO相连,就可以组成完整的测温系统。由于DS18B20每条总线上可以最多接8个测温点,那么英创嵌入式主板至少可以接64个测温点。     TO-92封装的DS18B20的引脚排列见图1,其引脚功能描述见

2013-08-14 16:15:57 1651

原创 内存越界的一种定位方法

#include #include #include void fn(char *str){ memset(str, 0, 64); return;}int main(int argc, char **argv){ char badstr[32] = "abc"; int fd = 1; printf("badstr = %s\n", ba

2013-05-16 16:13:58 4331 1

转载 架构设计:多进程还是多线程

就像莎士比亚的“To be, or not to be, that is the question”始终困扰着哈姆雷特,对于“进程还是线程?”这个问题,也经常困扰着那些进行软件架构设计的家伙。所以今天打算聊一下我对这个问题的体会。假如你还搞不清楚线程和进程的区别,请先找本操作系统原理的书好好拜读一下,再回来看帖。  由于这个问题很容易引发口水战,事先声明如下:多进程和多线程,无法一概而论地说谁

2013-04-22 23:05:02 590

原创 类中虚函数、普通成员函数的调用

class A{public: virtual void P1() { printf("A1\n"); } void P2() { printf("A2\n"); }};class B : public A{public: virtual void P1() { printf("B1\n"); } void P2() { printf("B2\n");

2013-04-17 10:47:06 1241

原创 c++大端小端判断

大伙觉得这样判断大端小端有问题没?int main(){ if (0x78 == (char)0x12345678) printf("little_endian\n"); else printf("big_endian\n");return 0;}

2013-04-17 00:47:04 1116

原创 基类构造中,不要期望多态行为

#ifndef _PLOYMORPHISM__H#define _PLOYMORPHISM__Hclass CBase{public: CBase() { init(); }; ~CBase() {}; virtual void init() { printf("CBase::init()\n");

2013-04-14 21:47:29 516

原创 extern "C"

使得c和c++或其它语言实现混合编程1、声明函数为extern类型2、声明函数按照C语言的方式编译和链接int fun(int a, char b);c语言命名:_func++语言静态函数命名:_fun_int_charc++语言类函数的命名:?fun@ClassName@@YGHHD@Zc++使用c头文件:[cTest.h]extern

2013-03-28 15:55:25 560

原创 top virl 不断增长

多线程程序,top发现virt一直增长1次  7-8m的速度增长请检查你的   pthread_create()  它可能就是元凶解决方案:1、线程常驻,并通过IPC管理起来2、继续创建,但要pthread_detach(pthread_self())

2013-03-27 18:04:26 1495

原创 epoll序列

学习记录,图示以明确流程;流程粗略且只能示意;内部实现如多个队列的操作、数据安全及同步等技巧等要参考源码了;序列如有不对或不详细之处请指出,谢谢;

2013-03-09 14:17:15 873

原创 agm设计备注

界面与业务分离;数据交互通过进程通信,二者可互相监控是否有心跳(相互进程守护);模块控制(如维护所用命令)通过命令模式解决。 可能影响检票的变化:项目/线路卡类型进站/出站检票后票卡处理流程不同(如是否是黑名单,是否是测试卡等); 交易组织:项目交易类型

2013-01-30 22:38:33 626

原创 boost::bind 函数与类成员的区别

class CP{public:    int print(int a, int b)    {        printf("CP print() a=%d, b=%d");    }}; int print(int a, int b){    printf("print() a=%d, b=%d");} CP f &rf=f;CP*

2012-09-23 22:26:23 469

转载 嵌入式LINUX环境下视频采集知识-V4L2,原理

V4L2是Linux环境下开发视频采集设备驱动程序的一套规范(API),它为驱动程序的编写提供统一的接口,并将所有的视频采集设备的驱动程序都纳入其的管理之中。V4L2不仅给驱动程序编写者带来极大的方便,同时也方便了应用程序的编写和移植,具有广泛的应用价值。了解更多视频采集技术知识,您可以登录同三维视频网:http://www.xiangb.com 。  Video for Linux

2012-02-10 14:15:37 566

转载 C++字符串格式化 sprintf

[转]C++字符串格式化 sprintfsprintf你知道多少(转) 选自《CSDN 社区电子杂志——C/C++杂志》在将各种类型的数据构造成字符串时,sprintf 的强大功能很少会让你失望。由于sprintf 跟printf 在用法上几乎一样,只是打印的目的地不同而已,前者

2011-07-07 14:27:52 618 1

转载 Map中STL

<br /><br />Map是STL的一个关联容器,它提供一对一(其中第一个可以称为关键字,每个关键字只能在map中出现一次,第二个可能称为该关键字的值)的数据处理能力,由于这个特性,它完成有可能在我们处理一对一数据的时候,在编程上提供快速通道。这里说下map内部数据的组织,map内部自建一颗红黑树(一种非严格意义上的平衡二叉树),这颗树具有对数据自动排序的功能,所以在map内部所有的数据都是有序的,后边我们会见识到有序的好处。<br />下面举例说明什么是一对一的数据映射。比如一个班级中,每个学生的学号

2011-05-18 15:44:00 307

原创 Singleton模式

<br /><br />//GOF<br />// Header file Singleton.h <br />class Singleton   {<br />public:<br />    static Singleton *Instance()<br />    {<br />        if( !m_pInstatnce)<br />            m_pInstance = new Singleton;<br />        return m_pInstance;<br />  

2011-05-18 15:42:00 280

原创 内存字节对齐

#pragma pack(8)struct A{ char a; short b;};struct B{ char c; A d; long long e;};#pragma pack()  { A stA; B stB; stB.c = 1; stB.d.a = 2; stB.d.b = 3; stB.e = 4; A *pA = &stA; B *pB = &stB; sizeof(A); siz

2011-01-16 17:00:00 305

研发技术管理.pdf

研发技术管理岗位必备技能:角色认知、管理规划、团队建设、任务管理、管理沟通 思维导图 无论是管理新人,还是管理老将,看此导图,每一遍都必有不同角度收获

2020-04-05

基于VC++实现的ftp程序

xiongFtp.dsp This file (the project file) contains information at the project level and is used to build a single project or subproject. Other users can share the project (.dsp) file, but they should export the makefiles locally. xiongFtp.h This is the main header file for the application. It includes other project specific headers (including Resource.h) and declares the CXiongFtpApp application class. xiongFtp.cpp This is the main application source file that contains the application class CXiongFtpApp. xiongFtp.rc This is a listing of all of the Microsoft Windows resources that the program uses. It includes the icons, bitmaps, and cursors that are stored in the RES subdirectory. This file can be directly edited in Microsoft Visual C++. xiongFtp.clw This file contains information used by ClassWizard to edit existing classes or add new classes. ClassWizard also uses this file to store information needed to create and edit message maps and dialog data maps and to create prototype member functions. res\xiongFtp.ico This is an icon file, which is used as the application's icon. This icon is included by the main resource file xiongFtp.rc. res\xiongFtp.rc2 This file contains resources that are not edited by Microsoft Visual C++. You should place all resources not editable by the resource editor in this file.

2009-05-17

发送邮件(sendmail)的源代码

SendMail.h This is the main header file for the application. It includes other project specific headers (including Resource.h) and declares the CSendMailApp application class. SendMail.cpp This is the main application source file that contains the application class CSendMailApp. SendMail.rc This is a listing of all of the Microsoft Windows resources that the program uses. It includes the icons, bitmaps, and cursors that are stored in the RES subdirectory. This file can be directly edited in Microsoft Developer Studio. res\SendMail.ico This is an icon file, which is used as the application's icon. This icon is included by the main resource file SendMail.rc. res\SendMail.rc2 This file contains resources that are not edited by Microsoft Developer Studio. You should place all resources not editable by the resource editor in this file. SendMail.clw This file contains information used by ClassWizard to edit existing classes or add new classes. ClassWizard also uses this file to store information needed to create and edit message maps and dialog data maps and to create prototype member functions.

2009-05-17

获取ip的应用程序及c语言源代码

GetIP.h This is the main header file for the application. It includes other project specific headers (including Resource.h) and declares the CGetIPApp application class. GetIP.cpp This is the main application source file that contains the application class CGetIPApp. GetIP.rc This is a listing of all of the Microsoft Windows resources that the program uses. It includes the icons, bitmaps, and cursors that are stored in the RES subdirectory. This file can be directly edited in Microsoft Developer Studio. res\GetIP.ico This is an icon file, which is used as the application's icon. This icon is included by the main resource file GetIP.rc. res\GetIP.rc2 This file contains resources that are not edited by Microsoft Developer Studio. You should place all resources not editable by the resource editor in this file. GetIP.clw This file contains information used by ClassWizard to edit existing classes or add new classes. ClassWizard also uses this file to store information needed to create and edit message maps and dialog data maps and to create prototype member functions.

2009-05-17

vc++写的收取邮件的源代码

列表: chekmail.c chekmail.def chekmail.dsp chekmail.dsw chekmail.exe chekmail.h chekmail.mak chekmail.rc resource.h

2009-05-17

ftp的c语言实现代码 服务器 客户端

File List: AC_FTP\AC_FTP.DEF AC_FTP\AC_FTP.ICO AC_FTP\RESOURCE.H AC_FTP\AC_FTP.H AC_FTP\AC_FTP.MAK Makefile for 16-bit ac_ftp.exe AC_FTP\AC_FTP32.MAK Makefile for 32.bit ac_ftp32.exe AC_FTP\AC_FTP.RC AC_FTP\FTP_DATA.C all routines for the data connection AC_FTP\FTP_CTRL.C all routines for the control connection AC_FTP\AC_FTP.C

2009-05-17

MSMQ知识+控制ASP进程+WCF+网络监控系

MSMQ知识+控制ASP进程+WCF+网络监控系

2009-01-21

sim卡详细资料和安全缺陷分析及sim卡应用

sim卡详细资料 安全缺陷分析 sim卡应用

2009-01-16

空空如也

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

TA关注的人

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