![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
language
文章平均质量分 84
grant_alliswell
It's never too late to be what you might have been.
展开
-
c语言之memset函数详解
功 能: 将s所指向的某一块内存中的每个字节的内容全部设置为ch指定的ASCII值, 块的大小由第三个参数指定,这个函数通常为新申请的内存做初始化工作 用 法: void *memset(void *s, char ch, unsigned n); 程序例: #include #include #include int m转载 2014-07-19 21:53:59 · 412 阅读 · 0 评论 -
C8051f系列开发之keil c单步调试
C8051f系列单片机是一种高速,集成度很高的dan原创 2014-07-28 09:01:15 · 3108 阅读 · 0 评论 -
c++ dynamic_cast
在多态概念中,基类的指针既可以指向基类的对象,又可以指向派生类的对象。我们可以使用dynamic_cast类型转换操作符来判断当前指针(必须是多态类型)是否能够转换成为某个目的类型的指针。根据dynamic_cast的使用说明(如http://en.wikipedia.org/wiki/Run-time_type_information#dynamic_cast)函数int getVert原创 2015-06-17 21:50:40 · 801 阅读 · 0 评论 -
string, const char*, char 之间的转化
1. string转const char*string s ="abc";constchar* c_s = s.c_str();2. const char*转string 直接赋值即可constchar* c_s ="abc";string s(c_s); 3. string转char*string s ="abc";char转载 2015-09-22 16:34:07 · 365 阅读 · 0 评论 -
Files IO in C
files IO in CFILE *For C File I/O you need to use a FILE pointer, which will let the program keep track of the file being accessed. (You can think of it as the memory address of the file or the locati转载 2015-12-22 14:55:07 · 372 阅读 · 0 评论 -
linux下反汇编一个程序,并通过分析汇编代码理解计算机是如何工作的
原创 2017-02-26 23:29:22 · 340 阅读 · 0 评论