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

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

导航

随笔分类 -  C++

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 吾一 阅读(228) 评论(0) 推荐(0)

problems in c++ 指针等
该文被密码保护。

posted @ 2013-07-28 12:47 吾一 阅读(45) 评论(0) 推荐(0)

CString string int char* 转换
摘要:Convert strings to a long-integer value.___longstrtol(constchar*nptr,char**endptr,intbase);nptr: Null-terminated string to convertendptr: Pointer to ... 阅读全文

posted @ 2013-07-27 11:53 吾一 阅读(335) 评论(0) 推荐(0)

const_cast/常量表达式视为宏
摘要:#include int main(int argc, char* argv[]) { const int ic = 100; // 编译期间的常量,没有地址,类似于C中的#define const int *pc=⁣ // 分配内存. const_cast(i... 阅读全文

posted @ 2013-03-23 19:20 吾一 阅读(262) 评论(0) 推荐(0)

程序的编写/数据结构和操作/容器的应用/查询程序
摘要:容器的综合应用:文本查询程序该程序将读取用户指定的任意文本文件,然后允许用户从该文件中查找单词。查询的结果是该单词出现的次数,并列出每次出现的行。如果某单词在同一行多次出现,程序将只显示该行一次。行号按升序显示。设计程序的一个良好习惯是首先将程序所涉及的操作列出来。明确需要提供的操作有助于建立需要的... 阅读全文

posted @ 2013-03-20 17:01 吾一 阅读(344) 评论(0) 推荐(0)

库函数, string , integer to char
摘要:#include //use of itoa: integer to char//puts output char* //convert string to char* //string name with accumulated acount.string sName = "book-";int ... 阅读全文

posted @ 2013-03-19 20:24 吾一 阅读(195) 评论(0) 推荐(0)

c++ learning
摘要:Obviously, C++ is very complex. Obviously, people get lost. However, most peple get lost when they get diverted into becoming language lawyers rather ... 阅读全文

posted @ 2013-03-01 15:55 吾一 阅读(204) 评论(0) 推荐(0)