try it, then you know it____________just do it , as love easily fade.

一次只有一个目标,步子迈小些,抑制一次实现所有功能的冲动。 过程如何结果就如何,行动是欢喜的,不管是兴奋还是沮丧的情绪都对结果无益。贵在持之以恒

导航

2016年4月1日 #

linux 学习 软件工具

摘要: _____secureCRT 远程通信工具 第二行第二个快速连接,输入主机名,即ip地址,和用户名,root 。其它默认:端口22,协议ssh2,防火墙 none. 保存会话,连接。需要输入用户密码。 进入后,输入df,会看到乱码,按如下方式解决。 选项-->会话选项--终端, >仿真 终端选择li 阅读全文

posted @ 2016-04-01 00:35 吾一 阅读(211) 评论(0) 推荐(0) 编辑

2016年3月30日 #

linux 学习1

摘要: 这里主要是听讲的一些东西的总结, thanks to lamp brother ____安装虚拟机 vmware 8.0.4, 因为高版本占用空间大,没必要 cent OS 6.3 linux 版本 ____Linux 系统 1,分区 主分区 max 4 扩展分区, max 1, And, 扩展分区 阅读全文

posted @ 2016-03-30 14:06 吾一 阅读(202) 评论(0) 推荐(0) 编辑

linux 学习 start

该文被密码保护。 阅读全文

posted @ 2016-03-30 01:07 吾一 阅读(7) 评论(0) 推荐(0) 编辑

2016年3月24日 #

转载 eclipse 常用键

该文被密码保护。 阅读全文

posted @ 2016-03-24 19:37 吾一 阅读(2) 评论(0) 推荐(0) 编辑

2016年3月11日 #

eclipse颜色 字体

摘要: 字体 之前也想过搜个字体,但是看了别人的推荐也没什么太大感觉。今天我自己选择了一款字体,发现看着单词中的i等瘦型的字母会比较费力,现在我知道自己想要什么样的字体了。网上推荐Inconsolata.pfa, eclipse里面只有consola字体,于是到网上下载了pfa文件,这个就是字体的安装文件, 阅读全文

posted @ 2016-03-11 22:38 吾一 阅读(239) 评论(0) 推荐(0) 编辑

tdd 和 make file,以及cygwin

摘要: 等我把这本书看完,好好总结一下。 还要把以前的博客文字整理一下 阅读全文

posted @ 2016-03-11 21:51 吾一 阅读(160) 评论(0) 推荐(0) 编辑

2016年3月9日 #

make file

摘要: CPPUTEST_USE_EXTENSIONS = Y如果没有这一句定义,CppUTestExt/MockSupport.h和CppUTestExt/MockSupport_c.h文件中的定义就不能用,编译后提示未定义 #include "CppUTest/TestHarness.h" #inclu 阅读全文

posted @ 2016-03-09 19:08 吾一 阅读(261) 评论(0) 推荐(0) 编辑

2016年3月4日 #

vsnprintf

摘要: http://www.cplusplus.com/reference/cstdio/vsnprintf/ int vsnprintf (char * s, size_t n, const char * format, va_list arg ); Write formatted data from 阅读全文

posted @ 2016-03-04 16:20 吾一 阅读(1376) 评论(0) 推荐(0) 编辑

2016年2月28日 #

eclipse

摘要: debug debug function can not run,"Launch failed. Binary not found." 1, make sure compile is performed 2,eclipse sucks sometimes. use make command dire 阅读全文

posted @ 2016-02-28 20:57 吾一 阅读(203) 评论(0) 推荐(0) 编辑

2016年2月19日 #

notepad++ 右键

摘要: 在网上搜索建立reg 后运行, 虽然右键菜单出现了建立的右键项目名,但与软件不关联 Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\Shell\open in Notepad++ ][HKEY_CLASSES_ROOT\*\Shel 阅读全文

posted @ 2016-02-19 22:14 吾一 阅读(224) 评论(0) 推荐(0) 编辑

2015年10月23日 #

eclipse 使用

摘要: 阅读全文

posted @ 2015-10-23 10:52 吾一 阅读(147) 评论(0) 推荐(0) 编辑

2015年6月3日 #

compile error

摘要: stray \241 程序有非法字符,如空格,引号等,一般因为从别的地方粘贴导致这个错误。 阅读全文

posted @ 2015-06-03 14:51 吾一 阅读(394) 评论(0) 推荐(0) 编辑

2015年5月10日 #

file access , argc, argv[ ]

摘要: _____main函数含有 两个参数 ,argc ,argv[]这两个参数用以指示命令行输入的参数信息。argc 的值是输入的参数的数量。argv是一个数组,每个数组元素指向一个string字符串类型的数据的地址,也就是存放每一个输入参数的地址。argv就是 char ** 类型。void file... 阅读全文

posted @ 2015-05-10 23:06 吾一 阅读(144) 评论(0) 推荐(0) 编辑

2015年4月10日 #

ntc 热敏电阻

摘要: 来自维基百科 http://zh.wikipedia.org/zh/%E7%83%AD%E6%95%8F%E7%94%B5%E9%98%BB热敏电阻的电阻值是根据温度由公式计算而来的,知道这一点就可以了。根据公式计算出的温度值和实际的温度值存在误差,在一定范围外,误差会相对较大。_____热敏电阻N... 阅读全文

posted @ 2015-04-10 15:31 吾一 阅读(315) 评论(0) 推荐(0) 编辑

2015年3月27日 #

编程范式 epesode7,8 stack存放指针类型and heap,register

摘要: 这一节从后往前写。____stack and heap___stack由 汇编语言操控管理,数据先入后出。栈是存放局部变量,函数调用子函数时,该函数在栈中占用的空间会增大,用于存放子函数的局部变量。很明显的逻辑,必须被调用的子函数的局部变量被释放以后才能存取调用函数的局部变量,先入后出就是这么理所当... 阅读全文

posted @ 2015-03-27 17:43 吾一 阅读(240) 评论(0) 推荐(0) 编辑

2015年3月25日 #

编程范式 episode 6 实现stack 栈功能_ to do

摘要: //既然在这里开始,那就在这里结束。实现stack 功能____coding_using subfunction to focus on the main aim of current function_void* is not allowed to do arithmetic operation_... 阅读全文

posted @ 2015-03-25 18:01 吾一 阅读(224) 评论(0) 推荐(0) 编辑

2015年3月22日 #

C 运算符优先级

摘要: 优先级1,[], (), ., -> 从左到右2,-,~,++,--,*,&,!,(类型),sizeof() 从右到左 . 单目运算符。3,/, *, % 双目运算符4, +, -5, > 移位6, >, >=,|=......所有赋值运算符. 从右到左15,,括号成员后单目算术后面是... 阅读全文

posted @ 2015-03-22 01:41 吾一 阅读(211) 评论(0) 推荐(0) 编辑

2015年3月12日 #

编程范式 episode3 and 4,5

摘要: episode 3--storage structure. ampersand operate with asterisk--library functionepisode 4--generic function 泛型函数swap(void* pa,void*pb,int size);-----am... 阅读全文

posted @ 2015-03-12 18:08 吾一 阅读(329) 评论(0) 推荐(0) 编辑

2015年3月11日 #

编程范式 epesode2 negative values, float 精度

摘要: episode2//it is very interesting,an excellect teacher, I love it1,why negative is indicated the way it is indicated2,how float is indicated3,type conv... 阅读全文

posted @ 2015-03-11 17:08 吾一 阅读(457) 评论(0) 推荐(0) 编辑

2015年3月6日 #

C 数据类型 长度

摘要: ----数据类型长度C99标准并不规定具体数据类型的长度大小。计算机具有不同位数的处理器,16,32和更高位的64位处理器,在这些不同的平台上,同一种数据类型具有不同的长度。char,short,长度相同,分别为1和2个字节。int 在32和64位处理器上皆为4个字节,在16位上是2个字节。long... 阅读全文

posted @ 2015-03-06 17:08 吾一 阅读(2469) 评论(0) 推荐(0) 编辑

memcpy code

摘要: memcpy#include //#include //uintptr_t is quoted.#include "string.h"/* * sizeof(word) MUST BE A POWER OF TWO * SO THAT wmask BELOW IS ALL ONES */... 阅读全文

posted @ 2015-03-06 16:10 吾一 阅读(292) 评论(0) 推荐(0) 编辑

2015年3月2日 #

排序算法 2 qsort 库函数,泛型函数

摘要: _____谈谈排序算法交换排序——>冒泡排序-->快速排序选择排序——>简单选择排序——>堆排序插入排序——>直接插入排序——>希尔排序_____排序算法对比名称稳定性时间复杂度空间复杂度描述数据对象为链表平均最坏冒泡排序YO(n^2)O(1)无序区,有序区。 选择排序 O(n^2)O(1)有序区,... 阅读全文

posted @ 2015-03-02 16:57 吾一 阅读(312) 评论(0) 推荐(0) 编辑

2015年2月20日 #

sin, miss the mark, correct our aim and try again

摘要: Guilt should only be a call to action.When we see that we "missed the mark"(the meaning of sin in the original biblical Greek) we only need to correct... 阅读全文

posted @ 2015-02-20 20:24 吾一 阅读(164) 评论(0) 推荐(0) 编辑

2015年2月12日 #

排序算法 1

摘要: 直观的视频http://www.cnblogs.com/wangfupeng1988/archive/2011/12/26/2302216.html1,冒泡排序——冒泡,每一次最大的值升到最后面,像水泡升到了水面,冒出来了,不再位于水里,不再需要比较,它已经确定了,独立了。每次从最前面开始比较相邻的... 阅读全文

posted @ 2015-02-12 19:36 吾一 阅读(223) 评论(0) 推荐(0) 编辑

2014年12月26日 #

ted be grateful

摘要: --------------------------------------------------------------David Steindl-Rast: Want to be happy? Be gratefulethere is always opportunity. to learn,... 阅读全文

posted @ 2014-12-26 20:58 吾一 阅读(282) 评论(0) 推荐(0) 编辑

2014年12月21日 #

C basics

摘要: C 日记目录C basics ................writing Numerationstorage , structor space assigningpointer, arrayothers___________________________________-c coding1.... 阅读全文

posted @ 2014-12-21 18:37 吾一 阅读(164) 评论(0) 推荐(0) 编辑

2014年12月20日 #

计时函数 clock() in c and c++

摘要: 在MSDN中,查得对clock函数定义如下:clock_t clock(void) ;返回该程序从启动到函数调用占用CPU的时间。这个函数返回从“开启这个程序进程”到“程序中调用clock()函数”时之间的CPU时钟计时单元(clock tick)数,在MSDN中称之为挂钟时间(wal-clock)... 阅读全文

posted @ 2014-12-20 19:38 吾一 阅读(228) 评论(0) 推荐(0) 编辑

2013年12月27日 #

WinExec

摘要: WinAPI: WinExec - 运行外部程序//声明WinExec( lpCmdLine: LPCSTR; {文件名和参数; 如没指定路径会按以下顺序查找: 程序目录/当前目录/System32/Windows/PATH环境变量} uCmdShow: UINT {启动选项}): UINT;//返回值:大于 31 {调用成功}等于 0 {内存不足}ERROR_FILE_NOT_FOUND = 2; {文件名错误}ERROR_PATH_NOT_FOUND = 3; {路径名错误}ERROR_BAD_FORMAT = 11; {EXE 文件无效}//... 阅读全文

posted @ 2013-12-27 17:43 吾一 阅读(1029) 评论(0) 推荐(0) 编辑

2013年12月10日 #

window date type

摘要: Most string operations can use the same logic forUnicodeand forWindows code pages. The only difference is that the basic unit of operation is a 16-bit character (also known as a wide character) for Unicode and an 8-bit character for Windows code pages. The Windows header files provide several type d 阅读全文

posted @ 2013-12-10 12:27 吾一 阅读(266) 评论(0) 推荐(0) 编辑

2013年12月9日 #

format when printing

摘要: http://msdn.microsoft.com/en-us/library/vstudio/56e442dc.aspx%[flags] [width] [.precision] [{h|l|ll|w|I|I32|I64}]typewidthOptional decimal number that specifies the minimum number of characters that are output.If the number of characters in the output value is less than the specified width, blanks a 阅读全文

posted @ 2013-12-09 13:58 吾一 阅读(180) 评论(0) 推荐(0) 编辑

2013年12月7日 #

Variant OLE automation

摘要: TheVariantdata type is thedata typefor allvariables. can contain any kind of data except fixed-lengthStringdata.You can use theVariantdata type in pl... 阅读全文

posted @ 2013-12-07 16:43 吾一 阅读(284) 评论(0) 推荐(0) 编辑

2013年12月4日 #

VC++ chap13 文档与串行化

摘要: Lesson 13 文档与串行化13.1使用CArchive类对文件进行读写操作//让对象数据持久性的过程称之为串行化,或者序列化void CGraphicView::OnFileWrite(){ // TODO: Add your command handler code here CFile file("1.txt",CFile::modeCreate|CFile::modeWrite); //build CFile object CArchive ar(&file,CArchive::store); //build archive object int i=4 阅读全文

posted @ 2013-12-04 11:59 吾一 阅读(226) 评论(0) 推荐(0) 编辑

2013年10月14日 #

vc++ basic chapt1

摘要: ______API 和SDK_像c程序可以调用各种函数库一样,windows操作系统提供应用程序编程的接口application programming interface简称API函数。所以主要的windows函数斗争windows.h头文件中进行了声明。_Windows操作系统提供了1000多种API函数,其拼写和语法可以在MSDN中查找。_Win32 SDK。 SDK全称software development kit,中文译名软件开发包。sdk是开发资源的一个集合。win32 SDK,即Windows32位平台下的软件开发包,包括了API函数、帮助文档、微软提供的一些辅助开发工具。__ 阅读全文

posted @ 2013-10-14 15:19 吾一 阅读(249) 评论(0) 推荐(0) 编辑

2013年9月11日 #

MFC 创建 excel 链接

摘要: http://support.microsoft.com/kb/178783 阅读全文

posted @ 2013-09-11 22:09 吾一 阅读(310) 评论(0) 推荐(0) 编辑

VC++ excel 2 operations

摘要: LPDISPATCH lpDisp; //lpdispatch,接口指针// 设置为FALSE时,加上app.Quit();// 否则EXCEL.EXE进程会一直存在,并且每操作一次就会多开一个进程app.SetVisible(TRUE);books.AttachDispatch(app.GetWorkbooks(),true);// 得到Worksheetssheets.AttachDispatch(book.GetWorksheets(),true);// 得到Worksheetsheet.AttachDispatch(sheets.GetItem(_variant_t((short)(1 阅读全文

posted @ 2013-09-11 15:50 吾一 阅读(287) 评论(0) 推荐(0) 编辑

VC++ operate excel

摘要: 利用VC操作Excel的方法至少有两种1 .利用ODBC把Excel文件当成数据库文件,来进行读、写、修改等操作,网上有人编写了CSpreadSheet类,提供支持。2. 利用Automation(OLD Automation)方法。将Excel当成组件服务器,利用VBA。又分为基于MFC的和SDK两种。主要研究了一下第二种基于MFC的OLE编程方法。一、Excel的对象模型 在对Excel编程之前首先要了解微软Excel 对象(Object)模型。(Parent-Child关系) 图 1 Office 应用程序对象模型(Excel)From msdn其中: _application:代表.. 阅读全文

posted @ 2013-09-11 12:35 吾一 阅读(609) 评论(1) 推荐(0) 编辑

2013年9月8日 #

cursor

摘要: BeginWaitCursor(); // display the hourglass cursor // do some lengthy processing Sleep(3000); EndWaitCursor(); // remove the hourglass cursorstrangely: Note, in my vc++6.0, when only apply BeginWaitCursor() in a subroutine; useless, nothing change, 阅读全文

posted @ 2013-09-08 18:08 吾一 阅读(241) 评论(0) 推荐(0) 编辑

memory allocation

摘要: 1 malloc与free是C++/C语言的标准库函数,new/delete是C++的运算符。2,malloc, 必须 包含头文件3,nt* p_scalar =newint(5);//Does not create 5 elements, but initializes to 5int* p_ar... 阅读全文

posted @ 2013-09-08 16:13 吾一 阅读(217) 评论(0) 推荐(0) 编辑

2013年9月7日 #

afx , afxMessageBox , MessageBox

摘要: afx开头的是全局函数,可以在任何地方使用MessageBox是CWnd的子函数,只能在CWnd窗口类对象里面用,AfxMessageBox的函数原型intAfxMessageBox( LPCTSTR lpszText, UINT nType = MB_OK, UINT nIDHelp = 0 );int AFXAPIAfxMessageBox( UINT nIDPrompt, UINT nType = MB_OK, UINT nIDHelp = (UINT) –1 );在第一种形式中,lpszText表示在消息框内部显示的文本,消息框的标题为应用程序的可执行文件名(如Hello)。在第二种形 阅读全文

posted @ 2013-09-07 22:54 吾一 阅读(571) 评论(0) 推荐(0) 编辑

2013年9月4日 #

VC++ chap12 file

摘要: file operation_______C语言对文件操作的支持fopenaccepts paths that are valid on the file system at the point of execution;____writeFILE *pFile = fopen("1,txt","w"); //firstly, file should be opened fwrite("a carrot",1,strlen("a carrot"),pFile); fseek(pFile,10,SEEK_END); 阅读全文

posted @ 2013-09-04 16:38 吾一 阅读(242) 评论(0) 推荐(0) 编辑