C/C++
文章平均质量分 81
惹不起的程咬金
这个作者很懒,什么都没留下…
展开
-
VC动态添加路由
背景: 需求源于为ST测试人员所要实现的一个自动化工具,从PPPOE拨号到自动添加路由,最后到发包。 相关知识:(1)添加路由的主要函数:CreateIpForwardEntryMSDN的描述如下:The CreateIpForwardEntry function creates a route in the local computers IPv4 rout原创 2010-05-24 09:33:00 · 6834 阅读 · 6 评论 -
跟函数相关的const
Declaring a member function with the const keyword specifies that the function is a "read-only" function that does not modify the object for which it is called.To declare a constant member functio转载 2017-02-24 14:44:24 · 396 阅读 · 0 评论 -
C++ 一些小的知识点
很久不接触C++了,工作需要,很多东西都忘记了,只好把一些细小的知识点记录在这里帮助自己记忆。Declaring a member function with the const keyword specifies that the function is a "read-only" function that does not modify the object for wh原创 2017-07-10 09:55:01 · 279 阅读 · 0 评论 -
解析#pragma
在所有的预处理指令中,#pragma 指令可能是最复杂的了,它的作用是设定编译器的状态或者是指示编译器完成一些特定的动作。#pragma指令对每个编译器给出了一个方法,在保持与C和C++语言完全兼容的情况下,给出主机或操作系统专有的特征。依据定义,编译指示是机器或操作系统专有的,且对于每个编译器都是不同的。其格式一般为: #pragma Para 其中para 为参数,下面来看一些常用转载 2017-07-27 13:21:48 · 1290 阅读 · 0 评论