首页 > TAG信息列表 > Defines

_I _O _IO

#define    _I      volatitile const    /*!< Defines 'read only' permissions   定义只读权限  */ 所以_I修饰的变量只用来读取,且该变量不可以被编译器优化 #define   _O     volatitle             /*!< Defines 'write only' permissions  定义只写

CSAPP读书笔记第二章

计算机的字长 每一台计算机都有字长,指明指针数据的标称大小,字长决定了的最重要的系统参数是虚拟地址空间的最大大小。 字长决定了指针的存储大小,32位的字长的指针存储空间是4字节,64位是8个字节; 字长决定了虚拟地址的最大大小,所以32位的寻址空间最大是\(2^{32}\)Byte = 4GB,64

EF扩展方法,方便动态查询

using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Linq.Expressions; using System.Reflection; namespace EFDemo { /// <summary> /// Defines the <see cref="QueryExtent

VScode uint32_t 不是类型名 问题处理

VS Code提示 uint32_t 不是类型名,一脸懵,在IAR工程都正常的,不懂找度娘去 总结如下: 1、c_cpp_properties.json里defines增加 “__CC_ARM”,未解决我的问题 2、c_cpp_properties.json里defines增加 "STM32F103xB", 完美解决 // (此处根据工程使用的MCU确定) 新问题出现,结构体定义变

JAVA 实现 委托(事件)暂时只有无参的

import java.lang.reflect.Method; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * @Author 乔占江 qq:59663479 * @Data 2021/1/23 20:37 * @Description 委托实现,无参数版本,未考虑多线程安全 * @Versio

基础

以下来自cpp draft。 声明 extern int a; // declares a extern const int c; // declares c int f(int); // declares f struct S; // declares S typedef int Int; // declares Int ex

Effective C++记录

1、对于单纯变量,最好以const对象或enums替换#defines。   #define TEST 1.432   记号名称TEST在编译器处理源码前会被预处理器移走,因此不会进入记号表,当你运用此常量但获得一个编译错误信息时,错误信息会带有1.432而不是TEST,因此会花费更多时间去追踪它。 2、对于形似函数的宏,